Skip to content
Agentmart
Submit a tool

migrate-to-autotel

Migrate an existing observability setup to autotel.

Skill by jagreehal

IndexedApache-2.0★ 8
Write a review

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.

We use your email only for this newsletter. Privacy

About

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.

Use cases: agent-building

No 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

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jagreehal

Cite this page

migrate-to-autotel skill. Agent Mart. https://agentmart.dev/skills/jagreehal-migrate-to-autotel (last updated 2026-10-24)