You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tempo holds ~25% of serve_stream spans, and the loss is silent #2210
Tempo holds only about a quarter of the serve_stream spans the nodes complete, and nothing reports the loss. During #2205's investigation, no stalled leg's server span could be found, because most spans never reach Tempo.
Evidence (testnet, 2026-09-28 07:46–08:16 UTC)
increase(decdn_streams_completed_total[30m]) against the serve_stream spans in Tempo for the same window:
Node
Completed
In Tempo
bcl
431
101
nbg1
~246
~40
fra1
~51
~11
lon1
6
1
decdn_otlp_export_failures_total did not move. The loss is therefore silent: a batch-queue drop in the span processor, sampling, or a Tempo or Grafana Cloud ingest limit.
Next step
Find where spans drop: the batch span processor queue size and its dropped-span count, any sampler config, and the Tempo ingest limits.
Export a counter for dropped spans, so the loss shows on a dashboard.
The ~25% ratio comes from sampling in the collector, not from the daemon.
The daemon samples everything: Sampler::ParentBased(AlwaysOn) (crates/node/src/commands/otlp.rs:181).
The Grafana Alloy agent from the decdn/devopsgrafana_alloy role runs every trace through otelcol.processor.probabilistic_sampler. Its grafana_alloy_trace_sampling_ratio defaults to 0.25, so about 75% of spans are dropped by design. Sampling is not an export failure, so decdn_otlp_export_failures_total stays flat.
Fix on the testnet fleet (2026-09-28)
The fleet inventory now sets grafana_alloy_trace_sampling_ratio: 1.0. Alloy was redeployed to all 7 nodes, and every host renders sampling_percentage = 100.0. Spans from now on should match decdn_streams_completed_total. The 07:46–08:16 window above stays at ~25%.
Still open
Dropped-span counter. A counter in the daemon would not have caught this, because the drop happens downstream in Alloy. Alloy's own otelcol_processor_probabilistic_sampler_count_traces_sampled (or the receiver/exporter span counters) would show it on a dashboard.
Template default.decdn/devops still ships 0.25, so other operators get the same silent loss. Either raise the default or document the tradeoff next to it.
Triage against main @ ef4bb891: already fixed; nothing left to do in this repo.
The cause is Alloy's probabilistic_sampler in the decdn/devopsgrafana_alloy role, not the daemon. The daemon samples everything (Sampler::ParentBased(AlwaysOn), crates/node/src/commands/otlp.rs:181).
The testnet fleet runs grafana_alloy_trace_sampling_ratio: 1.0 since 2026-09-28.
The two open items live in decdn/devops:
a dashboard panel on Alloy's sampler/exporter counters;
the template default (0.25), to raise or document.
A daemon-side dropped-span counter would not catch this drop. Suggest moving those two items to decdn/devops and closing this issue.
Activity
thiras commentedon Sep 28, 2026
Cause: Alloy's trace sampler
The ~25% ratio comes from sampling in the collector, not from the daemon.
Sampler::ParentBased(AlwaysOn)(crates/node/src/commands/otlp.rs:181).decdn/devopsgrafana_alloyrole runs every trace throughotelcol.processor.probabilistic_sampler. Itsgrafana_alloy_trace_sampling_ratiodefaults to0.25, so about 75% of spans are dropped by design. Sampling is not an export failure, sodecdn_otlp_export_failures_totalstays flat.Fix on the testnet fleet (2026-09-28)
The fleet inventory now sets
grafana_alloy_trace_sampling_ratio: 1.0. Alloy was redeployed to all 7 nodes, and every host renderssampling_percentage = 100.0. Spans from now on should matchdecdn_streams_completed_total. The 07:46–08:16 window above stays at ~25%.Still open
otelcol_processor_probabilistic_sampler_count_traces_sampled(or the receiver/exporter span counters) would show it on a dashboard.decdn/devopsstill ships0.25, so other operators get the same silent loss. Either raise the default or document the tradeoff next to it.yigitdot commentedon Oct 1, 2026
Triage against
main@ef4bb891: already fixed; nothing left to do in this repo.probabilistic_samplerin thedecdn/devopsgrafana_alloyrole, not the daemon. The daemon samples everything (Sampler::ParentBased(AlwaysOn),crates/node/src/commands/otlp.rs:181).grafana_alloy_trace_sampling_ratio: 1.0since 2026-09-28.decdn/devops:0.25), to raise or document.A daemon-side dropped-span counter would not catch this drop. Suggest moving those two items to
decdn/devopsand closing this issue.