Use OTel span links to model batch processing and fan-in relationships

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the batch or fan-in pattern where one span logically depends on or aggregates multiple upstream spans from different traces
  2. When creating the downstream span, add span links referencing the span contexts of the upstream spans using the span link API
  3. Attach attributes to each span link to describe the relationship type, such as the batch job ID or message source identifier
  4. Verify the backend renders span links as navigable connections between traces rather than as child spans
  5. Document the linking convention in your team's instrumentation guide so consumers can follow links from aggregate spans back to source traces

Known gotchas

Related routes

Use OTel span links to connect causally related spans across asynchronous message queue boundaries
opentelemetry.io · 5 steps · unrated
Manually create and nest spans with the OTel SDK to trace internal business logic beyond framework auto-instrumentation
opentelemetry.io · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans