Span Links: Connecting Async Flows

When a request triggers async work, span links connect the flows. The pattern, the tooling, and the visualisations.

When you need it

Span links are an OpenTelemetry feature for connecting spans across traces. Where parent-child relationships connect spans within a trace, span links connect spans across traces. The pattern fits scenarios where work in one trace causes work in another.

What scenarios need span links:

The pattern fits async and batch flows. Synchronous flows use parent-child relationships; async flows use span links.

How

The implementation uses the OpenTelemetry Span API. The link is created with the originating trace's identifiers; the SDK records the link; the backend stores it.

The implementation is bounded. The standard libraries do most of the work; explicit linking handles the cases they miss.

Visualisation

The visualization of span links varies by vendor. Some vendors show them prominently; some store them but do not visualize. The team should verify before relying on the visualization.

Span link pattern cross-flow is one of those tracing advanced techniques that pays off for systems with significant async or batch flows. Nova AI Ops integrates with tracing platforms, supports span links, and produces the cross-flow visibility that mature distributed tracing requires.