Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add j4flmao/agent-skills --skill distributed-tracinggit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/j4flmao/agent-skills/distributed-tracing)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/distributed-tracing"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/distributed-tracing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/distributed-tracing"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/distributed-tracing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00130 | $0.01700 |
| Opus 5.5 | $0.00052 | $0.00680 |
| Sonnet 5.5 | $0.00026 | $0.00340 |
| Haiku 4.5 | $0.00013 | $0.00170 |
Grade A, and why
cloud-native-distributed-tracing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Distributed Tracing Architecture
Purpose
Make every request traceable across services, queues, and async jobs without unbounded cost. The hard parts are context propagation across non-HTTP boundaries and choosing a sampling design that keeps errors and slow traces while discarding routine ones.
Agent Protocol
Trigger
"distributed tracing", "trace context", "traceparent", "baggage", "tail sampling", "head sampling", "trace kafka", "jaeger", "trace correlation", "span links".
Input Context
- Languages/frameworks, messaging systems (Kafka, SQS, RabbitMQ), service mesh presence.
- Trace volume (spans/s) and backend (Jaeger, Tempo, vendor APM).
- What must be kept (errors, latency outliers, specific tenants).
Output Artifact
Propagation plan, sampling policy, Collector config. No file unless requested.
Response Format
Propagators: {tracecontext,baggage[,b3]}
Sampling: head={ratio} | tail={policies}
Collector topology: {agent -> load-balancing exporter -> tail-sampling gateway -> backend}
Async boundaries: {how context crosses each queue}
Completion Criteria
- Every boundary (HTTP, gRPC, each queue) propagates context.
- Sampling keeps 100% of errors if tail sampling is used.
- Logs carry
trace_id/span_idfor correlation.
W3C Trace Context
traceparent: 00-<trace-id 32 hex>-<parent-id 16 hex>-<trace-flags 2 hex>
00= version; trace-flags bit01= sampled.tracestatecarries vendor-specific key/values; must be forwarded unchanged when not understood.- Baggage (
baggageheader, W3C Baggage) carries application key/values (e.g.tenant.id) to all downstream services. It is not added to spans automatically, is visible to every hop (no secrets/PII), and adds bytes to every request.
Propagation Across Async Boundaries
HTTP and gRPC instrumentation inject/extract automatically. Messaging needs explicit care:
from opentelemetry import trace, propagate
from opentelemetry.trace import SpanKind, Link
tracer = trace.get_tracer("orders")
def publish(producer, order):
with tracer.start_as_current_span("orders publish", kind=SpanKind.PRODUCER):
carrier: dict[str, str] = {}
propagate.inject(carrier) # writes traceparent/tracestate/baggage
headers = [(k, v.encode()) for k, v in carrier.items()]
producer.produce("orders", value=order.to_json(), headers=headers)
def consume(msg):
carrier = {k: v.decode() for k, v in (msg.headers() or [])}
ctx = propagate.extract(carrier)
# Option A: continue the trace (one consumer per message)
with tracer.start_as_current_span("orders process", context=ctx, kind=SpanKind.CONSUMER):
handle(msg)
def consume_batch(msgs):
# Option B: batch — one span with links to each producer context
links = [Link(trace.get_current_span(propagate.extract(
{k: v.decode() for k, v in (m.headers() or [])})).get_span_context()) for m in msgs]
with tracer.start_as_current_span("orders process batch", links=links, kind=SpanKind.CONSUMER):
for m in msgs:
handle(m)
Use span links whenever one span relates to many parents (batches, fan-in) — parent/child only models one.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +126 lines · +130 tokens per session 477a8ff183b4
- 1mo ago First seen · 23 lines · 0 tokens per session scan A f09443a5027f
cloud-native-distributed-tracing is a skill published in the GitHub repository j4flmao/agent-skills (34 stars, last pushed today), licensed MIT. It adds 130 tokens to every session and 1,700 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
opentelemetry-docs
OpenTelemetry — vendor-neutral observability: traces, metrics, logs, OTLP, Collector, SDKs, semantic conventions.
observability-phoenix
Open-source AI observability platform for LLM tracing, evaluation, and monitoring. Use when debugging LLM applications with detailed traces, running evaluations on datasets, or monitoring production AI systems with real-time insights.
opentelemetry-net-instrumentation
Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.
observability
Use when instrumenting a service from the inside so an incident can be explained from telemetry alone — wiring OpenTelemetry logs, metrics and traces, standing up a Collector, exporting via OTLP, and defining telemetry-driven alerts. NOT outside-in uptime probes, on-call rotation, or who-gets-paged (that is…
frontmcp-observability
Use when adding tracing, structured logging, metrics, or monitoring to a FrontMCP server. Covers zero-config OpenTelemetry distributed tracing across all flows; the this.telemetry API for custom spans, events, and attributes in tools, plugins, agents, and skills; structured JSON logging with trace correlation and…
huawei-cloud-agentarts-otel-ingestion
OpenTelemetry ingestion skill for Huawei Cloud AgentArts observability platform. Provides OTel telemetry data (trace/metrics/logs) ingestion into AgentArts agent-ops, AI Agent observation with genai semantic conventions, auto-configuration for Java/Python/Node.js/Go applications, and ingestion diagnostics and…