tuning-sampling-and-trace-derived-metrics
Configures head probabilistic sampling, two-tier trace-ID load-balanced tail sampling, and pre-sampling spanmetrics and servicegraph connectors on OpenTelemetry Collectors to preserve 100% accurate RED metrics and dependency topology while cutting trace ingestion costs. Use when reducing trace storage spend, retaining 100% of error and high-latency traces, sizing tail-sampling StatefulSets, or generating RED histograms and servicegraph metrics from spans. Do not use for OTTL PII masking or URL regex normalization (use controlling-telemetry-cardinality-and-noise), SDK Instrumentation CR workload injection (use instrumenting-kubernetes-workloads), querying Tempo service graphs or PrometheusRule alerts (use mapping-tempo-topology-and-alerts), or Tempo server tenant overrides (use operating-tempo-deployments-and-tenants).
Pinned to revision b293ef8cf679, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/tuning-sampling-and-trace-derived-metrics/SKILL.md
- skills/tuning-sampling-and-trace-derived-metrics/references/sampling-decision-matrix.md
- skills/tuning-sampling-and-trace-derived-metrics/references/spanmetrics-and-servicegraph.md
- skills/tuning-sampling-and-trace-derived-metrics/scripts/estimate_tail_sampling_capacity.py
- skills/tuning-sampling-and-trace-derived-metrics/scripts/render_tail_sampling_policies.py
Every link opens the file at its source, pinned to the revision this page describes.