otel-span-events-to-logs-migration SKILL.md skillA

otel-span-events-to-logs-migration from ollygarden/opentelemetry-agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ollygarden/opentelemetry-agent-skills/otel-span-events-to-logs-migration@git:20261026.86eb932

Pins git:20261026.86eb932 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ollygarden/opentelemetry-agent-skills
Path
skills/otel-span-events-to-logs-migration/SKILL.md
Versions recorded
7
Latest version
git:20261026.86eb932, committed Oct 26, 2026
First version recorded
Jul 30, 2026
Size
7,340 bytes
Repository stars
125
License
Apache-2.0

Migrate OpenTelemetry Span Events (AddEvent, RecordException, and language equivalents) to the Logs API following the accepted OTEP 4430 migration plan. Use when migrating instrumentation from span events to log-based events, reviewing code that still uses AddEvent or RecordException, or planning a codebase migration while preserving trace correlation.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Span Events to Logs Migration

Use this skill to migrate instrumentation from the Span Event API (`AddEvent`, `RecordException`, and language equivalents) to the Logs API, following the accepted [OTEP 4430 deprecation plan](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.62.0/oteps/4430-span-event-api-deprecation-plan.md).

## Background

The OpenTelemetry project accepted a plan to deprecate `Span.AddEvent` and `Span.RecordException` in favor of emitting events and exceptions through the Logs API. Span Events as a concept remain valid -- they can be emitted via logs that correlate to the active span, and optionally bridged back into the span proto.

Status as of 2026-10-25 (specification v1.62.0): OTEP 4430 is accepted, log-based event/exception emission is specified in the Logs API, and the SDK "event to span event bridge" is specified with Development status. The trace API methods `AddEvent`/`RecordException` are not yet formally marked Deprecated in the specification -- that step is still pending. Treat existing span-event calls as migration candidates, not automatically invalid code; some SDK-specific equivalents have already changed status (for…
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ollygarden/opentelemetry-agent-skills/otel-span-events-to-logs-migration@sha256:5c221276670fb89e

The line at the top of this page pins the label git:20261026.86eb932, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_as4qnaatbg3vphn5.svg)](https://markdownregistry.com/a/art_as4qnaatbg3vphn5)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Jul 30, 2026 and Oct 26, 2026, about one every 15 days.

versioncommittedcommitsizeaudit
git:20261026.86eb932 latest2026-10-26 86eb932 7,340 BA view · diff
git:20261003.99553382026-10-03 9955338 7,316 BA view · diff
git:20260913.c83c2082026-09-13 c83c208 6,868 BA view · diff
git:20260903.97e92a92026-09-03 97e92a9 6,699 BA view · diff
git:20260827.e38e5452026-08-27 e38e545 6,699 BA view · diff
git:20260815.474f6242026-08-15 474f624 6,688 BA view · diff
git:20260730.1a071a42026-07-30 1a071a4 6,685 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7340 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ollygarden/opentelemetry-agent-skills · 125 stars · license Apache-2.0 · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_as4qnaatbg3vphn5
GET https://markdownregistry.com/api/v1/resolve?ref=ollygarden/opentelemetry-agent-skills/otel-span-events-to-logs-migration
GET https://markdownregistry.com/api/v1/blob/5c221276670fb89e6fd708b4daf2fd38465b056bb131875800cc28fc3f686f2e

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ollygarden/opentelemetry-agent-skills

AGENTS.md AGENTS.md file
ollygarden/opentelemetry-agent-skills · AGENTS.md
git:20261015.ab1d155 · audit A · 125 stars
CLAUDE.md CLAUDE.md file
ollygarden/opentelemetry-agent-skills · CLAUDE.md
git:20260719.3c9a552 · audit B · 125 stars
otel-browser SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-browser/SKILL.md · OpenTelemetry browser/RUM mechanics for SPAs and MPAs. Use for “browser OTel,” “frontend observability,” “Web Vitals,”…
git:20261026.126a1c6 · audit A · 125 stars
otel-collector-builder SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-collector-builder/SKILL.md · Build custom OpenTelemetry Collector distributions with OCB (OpenTelemetry Collector Builder). Use when authoring or…
git:20261026.7dc08b2 · audit A · 125 stars
otel-collector SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-collector/SKILL.md · OpenTelemetry Collector component configuration. Use when authoring, reviewing, or debugging Collector YAML for a…
git:20261031.506c013 · audit A · 125 stars
otel-declarative-config SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-declarative-config/SKILL.md · OpenTelemetry declarative YAML configuration for SDK setup. Use when configuring OpenTelemetry SDK providers (tracer…
git:20261106.3791f23 · audit A · 125 stars
otel-dotnet SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-dotnet/SKILL.md · OpenTelemetry in .NET — DI/builder SDK setup (OpenTelemetry.Extensions.Hosting, AddOpenTelemetry, UseOtlpExporter…
git:20261003.b99072b · audit A · 125 stars
otel-go SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-go/SKILL.md · OpenTelemetry in Go — SDK setup, API surface, breaking changes, contrib instrumentation libraries (otelhttp, otelgrpc…
git:20261026.be344f2 · audit A · 125 stars
otel-java SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-java/SKILL.md · OpenTelemetry in Java — Javaagent zero-code instrumentation, Spring Boot Starter, manual autoconfigure SDK, declarative…
git:20260827.e38e545 · audit A · 125 stars
otel-js SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-js/SKILL.md · OpenTelemetry in Node.js / JavaScript / TypeScript — NodeSDK, declarative YAML configuration, auto-instrumentations…
git:20261026.126a1c6 · audit A · 125 stars
otel-ottl SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-ottl/SKILL.md · OpenTelemetry Transformation Language (OTTL) expert for writing and debugging telemetry transformations in the…
git:20261026.7dc08b2 · audit A · 125 stars
otel-profiles SKILL.md skill
ollygarden/opentelemetry-agent-skills · skills/otel-profiles/SKILL.md · OpenTelemetry profiles signal and the eBPF profiler (otelcol-ebpf-profiler, `profiling` receiver). Use when setting up…
git:20261105.43d7f5a · audit A · 125 stars

Every file in ollygarden/opentelemetry-agent-skills

Browse by kind, by grade A, or by owner.