gw auth api ord inv db
Some paths require a wider view.
Return on a larger screen.

Trace-Aware Routing

Twelve fragments of a single story arrive at three doors.
Only the door that receives all twelve can understand the whole.
You learned that tail sampling needs the complete trace. But when multiple agents export spans from the same trace, a load balancer scatters them. Watch what happens.
span routing mode: round-robin
agent-1 spans: A, B, C, D agent-2 spans: E, F, G, H agent-3 spans: I, J, K, L LB round-robin gateway-1 gateway-2 gateway-3
12 spans from one trace. 3 agents. Watch the load balancer distribute them.
Routing strategy

Can any single gateway replica make a tail sampling decision?

What does consistent hashing of trace IDs achieve?

Trace-Aware Routing

Trace-aware routing ensures tail sampling sees the complete picture.

Without it, spans scatter across replicas and the sampler is blind.

Continue →