migrate-to-autotel
Migrate an existing observability setup to autotel.
Skill by jagreehal
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jagreehal-migrate-to-autotel
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/migrate-to-autotel
What's inside
- Skill name
migrate-to-autotel- Description
- Migrate an existing observability setup to autotel. Handles raw @opentelemetry/sdk-node, Sentry tracer (`@sentry/node`), Datadog APM (`dd-trace`), New Relic agent (`newrelic`), Honeycomb Beelines, and OpenTracing / OpenCensus. Preserves trace fidelity (no gap in dashboards during cutover), maps vendor-specific span attributes to OTel semantic conventions, and runs both stacks side-by-side during the cutover window.
- License
- Apache-2.0
- Instructions
- 264 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Migrate to autotel
Replacing tracing in a live service is risky. You can lose data, change span shapes, or break dashboards your on-call team relies on. This skill covers the safe paths from each major source, what to change in your code, and how to verify the cutover before turning the old stack off.
## Choose your starting point
| You're using | Section |
| ------------------------------------------- | -------------------------------------------------------------- |
| Raw `@opentelemetry/sdk-node` | [From raw OTel SDK](#from-raw-opentelemetry-sdk-node) |
| Sentry `@sentry/node` performance / tracing | [From Sentry](#from-sentry-performance-tracing) |
| Datadog APM (`dd-trace`) | [From Datadog APM](#from-datadog-apm) |
| New Relic agent (`newrelic`) | [From New Relic Node agent](#from-new-relic-node-agent) |
| Honeycomb Beelines | [From Honeycomb Beelines](#from-honeycomb-beelines) |
| OpenTracing / OpenCensus | [From OpenTracing / OpenCensus](#from-opentracing--opencensus) |
| `console.log` everything | [From unstructured logging](#from-unstructured-logging) |
## Universal cutover plan
1. **Pin metrics.** Snapshot p50 / p95 / p99 / error-rate / span-count for the top 5 endpoints. You'll diff post-cutover.
2. **Run both side-by-side for 24–48 h.** Both old and new exporters wired in parallel. Use distinct backends (or distinct datasets) so you can compare like for like.
3. **Cutover dashboards & alerts.** Re-author critical dashboards on the autotel data; keep both alert sets armed.
4. **Disable the old stack.** Remove old SDK imports + processors; redeploy.
5. **Decommission.** Remove old packages from `package.json` and lock files; archive old dashboards.
Don't compress this into a single PR. The riskiest step is "disable old stack". Keep it last.
## From raw `@opentelemetry/sdk-node`
The smoothest migration. autotel layers on top of OTel. Your span attributes, propagators, and exporters can stay.
### Drop-in init
Before:
```typescript
import { NodeSDK } from '@opentelemetry/sdk-node';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { resourceFromAttributes } from '@opentelemetry/resources';
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
const sdk = new NodeSDK({
resource: resourceFromAttributes({ 'service.name': 'my-app' }),
spanProcessors: [
new BatchSpanProcessor(
new OTLPTraceExporter({ url: process.env.OTEL_ENDPOINT }),
),
],
});
sdk.start();
```
After:
```typescript
import { init } from 'autotel';
init({
service: 'my-app',
endpoint: process.env.OTEL_ENDPOINT!, // base URL: autotel appends /v1/traces
autoInstrumentations: ['http', 'undici'], // what NodeSDK users usually had
});
```
`init()` builds the provider and an OTLP HTTP/JSON exporter, and sets up the W3C trace-context and baggage propagators. It turns on **no** auto-instrumentation by default: list the libraries in `autoInstrumentations` (needs `@opentelemetry/auto-instrumentations-node` installed), or pass your existing `instrumentations: [...]`. If your old `url` ended in `/v1/traces`, drop the suffix. With no `endpoint` (or `OTEL_EXPORTER_OTLP_ENDPOINT`) nothing is exported.
### What you gain immediately
- `getRequestLogger().set({ … })` flattens onto the active span: no more `span.setAttribute('user.id', id)` boilerplate.
- PII redaction (`attributeRedactor: 'default'`) switches on by itself when `environment` (default `NODE_ENV`) is `production`.
- `destinations: [...]` for straightforward OTLP multi-backend fan-out.
- The same API on Cloudflare Workers and edge runtimes via `autotel-cloudflare` / `autotel-edge`.
### What stays the same
- Your propagator (W3C trace context + baggage are the default).
- Your exporters: pass them via `spanExporters` (autotel batches them) or `spanProcessors` (full control).
- Your resource attributes (`resourceAttributes` or `resource`).
## From Sentry performance tracing
Sentry's tracing is OTel-compatible since v7+, but their span shapes have non-standard names (`http.server`, `db.query`).
### Step 1: Use `autotel-sentry` to keep sending to Sentry
If you want the dashboards to stay in Sentry, autotel can export OTLP to Sentry's OTLP intake:
```typescript
import * as Sentry from '@sentry/node';
import { init } from 'autotel';
import { sentryOtlpConfig } from 'autotel-sentry';
const sentry = sentryOtlpConfig(process.env.SENTRY_DSN!);
// Keep Sentry for errors, but let autotel own OpenTelemetry
Sentry.init({ dsn: sentry.dsn, skipOpenTelemetrySetup: true });
// Sentry reads trace ids from the active OpenTelemetry span
Sentry.setOpenTelemetryContextAsyncContextStrategy();
init({ service: 'my-app', endpoint: sentry.endpoint, headers: sentry.headers });
```
### Step 2: Replace Sentry-specific helpers
| Sentry | autotel |
| ---------------------------------------------------------- | -------------------------------------------------------------------- |
| `Sentry.startSpan({ op: 'fn', name: 'process' }, () => …)` | `trace.run('process', (ctx) => …)` |
| `Sentry.captureException(err)` | `getRequestLogger().error(err)` or `recordStructuredError(ctx, err)` |
| `Sentry.setUser({ id })` | `getRequestLogger().set({ user: { id } })` |
| `Sentry.setContext('cart', { … })` | `getRequestLogger().set({ cart: { … } })` |
| reusable named transaction function | `trace(name, fn)` or `instrument({ key: name, fn })` |
### Step 3: Decide on errors-only vs full tracing
Sentry shines at errors; for tracing you may want to fan out to Honeycomb or Grafana Tempo. If both targets are plain OTLP backends, prefer `destinations`:
```typescript
init({
service: 'my-app',
destinations: [From jagreehal/autotel, Apache-2.0.
More from jagreehal/autotel
- 0.631score
build-audit-trails
jagreehal
Build or review tamper-aware audit trails on top of OpenTelemetry spans using autotel and the autotel-audit package (`withAudit`, `setAuditAttributes`…
SkillAFreshness: A★ 8Claude Code +9 - 0.631score
find-observability-gaps
jagreehal
Scores the observability of every entry point in a codebase with `autotel map` and closes the gaps it reports.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-anti-patterns
jagreehal
Common autotel mistakes and how to fix them.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-testing
jagreehal
Test autotel instrumentation with createTraceCollector() and InMemorySpanExporter.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-core
jagreehal
Explains when to reach for trace vs span vs request logger vs events in Autotel, and the package exports each lives behind.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
production-observability
jagreehal
Takes a Node.js or TypeScript service to production-grade observability with autotel, in an existing codebase or a new one, and keeps it there.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
design-alertable-metrics
jagreehal
Designs metrics an alarm can actually be written against — picking the attributes that let a rule isolate one failing dependency, pinning metric names as a…
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-investigate
jagreehal
Query OpenTelemetry telemetry (traces, metrics, logs, LLM analytics) via the autotel CLI.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-framework-setup
jagreehal
Set up autotel in Hono, Fastify, TanStack Start, Cloudflare Workers, Next.js, Express, MCP, and edge runtimes.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-request-logging
jagreehal
Accumulates request-scoped context and emits one wide-event snapshot per request with getRequestLogger(), set(), setLevel(), info/warn/error, and emitNow().
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-structured-errors
jagreehal
Throws and parses errors that explain themselves with message, why, fix, link, and status, including reusable catalogs via defineErrorCatalog.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
debug-missing-spans
jagreehal
Troubleshoot when expected OpenTelemetry spans don't reach the backend.
SkillAFreshness: A★ 8Claude Code +9
Signals
- Stars
- 8
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Oct 19, 2026 (9 days ago)
- Last release
- Sep 27, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/jagreehal/autotel
- Website
- jagreehal.github.io/autotel/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jagreehal
- 0.631score
find-observability-gaps
jagreehal
Scores the observability of every entry point in a codebase with `autotel map` and closes the gaps it reports.
SkillAFreshness: A★ 8Claude Code +9 - 0.631score
build-audit-trails
jagreehal
Build or review tamper-aware audit trails on top of OpenTelemetry spans using autotel and the autotel-audit package (`withAudit`, `setAuditAttributes`…
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-anti-patterns
jagreehal
Common autotel mistakes and how to fix them.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-testing
jagreehal
Test autotel instrumentation with createTraceCollector() and InMemorySpanExporter.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-core
jagreehal
Explains when to reach for trace vs span vs request logger vs events in Autotel, and the package exports each lives behind.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-investigate
jagreehal
Query OpenTelemetry telemetry (traces, metrics, logs, LLM analytics) via the autotel CLI.
SkillAFreshness: A★ 8Claude Code +9
Cite this page
migrate-to-autotel skill. Agent Mart. https://agentmart.dev/skills/jagreehal-migrate-to-autotel (last updated 2026-10-24)