AttritionOpenTelemetry semantic convention checker

Find the OpenTelemetry names the spec already retired.

Paste instrumentation code. Every attribute key, metric name, event name and semconv constant is checked against 1,563 names from 26 releases of the semantic conventions, stored as structured content in Sanity and read through Sanity Context. You get the verdict, the replacement for your span kind, the release that retired it, the spec line that says so, and a patch.

Real code: redishook.go from github.com/vignesh2027/bugsmash-sentry-demo, the entry that won DEV Summer Bug Smash.

Code125 lines

Pick a sample or paste code, then press Check names.

  • Finds string keys like "db.system"
  • Resolves SDK constants: SEMATTRS_HTTP_METHOD, semconv.DBSystemKey, SpanAttributes.DB_STATEMENT
  • Reads the span kind in your code, because net.peer.name has two different replacements
  • Checks metric and event names too, including ones like http.server.duration that left the spec with no deprecation entry
  • Catches retired enum values, such as cloud.platform = "azure_vm"
Ask the agentanswers from Sanity Context: the semantic conventions dataset and the migration guide Knowledge Base