Prompt
Our trace storage costs are getting out of control
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
That usually means one or more of these is happening:
- Too much data is being ingested: high-cardinality spans, verbose attributes, logs in traces, or sampling set too high.
- Retention is too long: old traces are being kept longer than needed.
- Inefficient storage tiering: hot storage is being used for everything.
- Duplicate/unnecessary instrumentation: too many spans per request or noisy services.
- Poor sampling strategy: collecting all traces instead of keeping what matters.
Fastest ways to cut trace storage cost
- Lower sampling rate
- Use head-based or tail-based sampling.
- Keep 100% for errors/slow requests, sample the rest.
- Trim span attributes
- Remove large payloads, stack traces, user data, and high-cardinality labels.
- Reduce span volume
- Stop auto-instrumenting low-value calls.
- Aggregate repeated internal spans where possible.
- Shorten retention
- Keep full-fidelity traces for days, not weeks, unless required.
- Filter noisy services
- Exclude health checks, retries, background jobs, or chatty endpoints if they’re not useful.
- Use tiered storage
- Hot for recent traces, cold/archive for older ones.
A good practical policy
- 100% of:
- errors
- slow traces above threshold
- traces from critical services
- 1–10% of:
- normal successful traffic
- Drop:
- health checks
- metrics-like spans
- large debug attributes
What to measure first
- Ingestion volume by service
- Top span/attribute contributors
- Sampling ratio by environment
- Retention by dataset
- Cost per million spans
If you want, I can help you build a cost-reduction plan based on your current setup, or give you sampling/retention recommendations for Datadog, Honeycomb, OpenTelemetry, Jaeger, or Grafana Tempo.