Skip to content
Back to skills

Opentelemetry Tracing

ASecurity

Instrument distributed services with OpenTelemetry spans, W3C trace propagation, sampling, and low-overhead exporters

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
developmentapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill opentelemetry-tracing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opentelemetry Tracing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opentelemetry Tracing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-opentelemetry-tracing-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-opentelemetry-tracing-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: opentelemetry-tracing
description: Instrument distributed services with OpenTelemetry spans, W3C trace propagation, sampling, and low-overhead exporters
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# OpenTelemetry tracing

Use when setting up or extending distributed tracing across APIs, databases, queues, and workers.

## Spans and propagation
- Propagate W3C Trace Context (`traceparent`, `tracestate`) cleanly over HTTP headers and explicitly inject/extract trace headers in queue message envelopes.
- Create custom spans at meaningful service, external call, and workflow boundaries; keep inner tight loops out of per-iteration spans to curb overhead.
- Record errors with `span.recordException(err)` and set `SpanStatusCode.ERROR` while catching exceptions safely.

## Attributes and exporters
- Follow semantic conventions (`http.request.method`, `db.system`, `messaging.system`) and avoid high-cardinality values or secrets in span attributes.
- Use `BatchSpanProcessor` with bounded queues and shutdown flush hooks (`sdk.shutdown()`) so short-lived processes and serverless jobs do not drop final spans.
- Apply head/tail sampling cleanly (`TraceIdRatioBasedSampler` or collector tail sampling for errors/slow requests).

## Verify
Run requests with an in-memory/stdout `SimpleSpanExporter` in tests to assert parent-child span links, attributes, and error statuses.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.