Skip to content

tempo holds ~25% of serve_stream spans, and the loss is silent #2210

Closed

Description

@thiras

Summary

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.

Related

#2205, #2211 (blocked in part by this).

Activity

  1. added
    kind:bug
    area:node
    on Sep 28, 2026
  2. thiras commented on Sep 28, 2026

    @thiras
    ContributorAuthor

    Cause: Alloy's trace sampler

    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/devops grafana_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.
  3. yigitdot commented on Oct 1, 2026

    @yigitdot
    Contributor

    Triage against main @ ef4bb891: already fixed; nothing left to do in this repo.

    • The cause is Alloy's probabilistic_sampler in the decdn/devops grafana_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:nodekind:bug

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions