In this article
- Why Observability Bills rise
- The four collector levers
- 1. Filter processor: drop what nobody queries
- 2. Batch processor: fewer, larger sends
- 3. Memory limiter: stop the collector from crashing
- 4. Tail sampling: keep the traces that matter
- What to check before you change the pipeline
- Side-by-side: the four levers
- Which to pick
- Frequently asked questions
- Does batching reduce the bill?
- Where should the memory limiter go?
- Can I sample traces on a single collector?
- What is the default wait before a tail sampling decision?
Observability Bills grow with the data you send, not with the questions you ask. The fastest way to cut them is to change what leaves your services: drop low-value telemetry, batch it efficiently, protect the collector’s memory, and keep only the traces you need. OpenTelemetry Collector gives you four levers for this, each documented by the project itself. This article explains them in order, with the trade-offs and the places where the documentation sets hard rules.
Why Observability Bills rise
Most observability platforms bill on volume in one or more dimensions: hosts, custom metrics, ingested logs, indexed events, or spans. Each vendor defines these units differently, so compare the current price list on each vendor’s own pricing page before you change anything. The units that matter for a pipeline change are the same everywhere:
- Log lines and their size, including debug output that reached production.
- Metric series, which multiply with each unique combination of labels or attributes.
- Spans, which grow with request volume and with the number of services in a call path.
A pipeline sits between your applications and the backend. That is where you can filter, batch and sample before the vendor meters anything. The change is cheap to test and easy to undo, which is why it is usually the first step in a cost review.
The four collector levers
1. Filter processor: drop what nobody queries
The filter processor drops spans, span events, metrics, datapoints and logs. Its project README states that it “allows dropping spans, span events, metrics, datapoints, and logs from the collector.” Conditions are written in the OpenTelemetry Transformation Language (OTTL), and the README says that “if any condition is met, the telemetry is dropped (each condition is ORed together).” One matching condition is enough to drop an item, so a broad condition removes more than it may look like it will. The README also lists the processor’s stability as alpha for traces, metrics and logs, and applies its documentation to version 0.146.0 and later. Check the version you run before you rely on it in production.
2. Batch processor: fewer, larger sends
The batch processor “accepts spans, metrics, or logs and places them into batches.” Its README gives the reason: “Batching helps better compress the data and reduce the number of outgoing connections required to transmit the data.” Batching does not remove data, so it does not lower a metered volume on its own. It lowers the overhead of sending that volume, which matters when the collector is the bottleneck. The same README says the batch processor “should be defined in the pipeline after the memory_limiter as well as any sampling processors.”
3. Memory limiter: stop the collector from crashing
The memory limiter processor “is used to prevent out of memory situations on the collector.” Its README states the placement rule: “the best practice is to add it as the first processor in a pipeline.” When memory use passes the soft limit, the processor “will enter memory limited mode and will start refusing the data.” That is a deliberate data loss, and it is better than a crash that drops everything in flight. Set the limit from the collector’s real memory allocation, not from a guess, and watch for refused data after you add filtering or sampling.
4. Tail sampling: keep the traces that matter
Tail sampling decides whether to keep a trace after its spans have arrived. That lets you keep every error trace and every slow trace, and sample the rest. It is also the lever with the most rules. The processor holds spans in memory while it waits for a decision. Its README describes decision_wait as “time before timer handling for a trace,” with a default of 30s. It also states the constraint that matters most for a multi-collector setup: “All spans for a given trace MUST be received by the same collector instance for effective sampling decisions.” The Warnings section repeats it: “All spans for a given trace must be sent to the same Collector instance.”
In practice this means a load-balancing tier in front of the sampling collectors that routes by trace ID. Without it, a trace split across two collectors gets two partial decisions, and the sampled trace is incomplete. Plan the routing before you enable the processor, and size memory for the number of traces that can be open during the wait window.
What to check before you change the pipeline
- Volume by signal: Measure how many logs, metric series and spans reach the backend per day, and by service. The biggest share is where a filter pays off first.
- Who queries what: Check which fields and series your dashboards and alerts actually read. Anything no alert or dashboard uses is a candidate for a filter rule.
- Collector sizing: Confirm the memory and CPU budget of each collector, and where the memory limiter sits in each pipeline.
- Routing for tail sampling: Confirm that all spans of a trace reach the same collector, or do not enable tail sampling yet.
Side-by-side: the four levers
| Lever | What it changes | Effect on metered volume | Main risk | Primary source |
|---|---|---|---|---|
| Filter processor | Drops spans, events, metrics, datapoints and logs | Direct: fewer items reach the backend | A broad OTTL condition drops more than intended | Filter processor README, opentelemetry-collector-contrib |
| Batch processor | Groups data into batches before export | None directly; lowers send overhead | Must sit after memory limiter and sampling | Batch processor README, opentelemetry-collector |
| Memory limiter | Refuses data above a soft memory limit | None; prevents crashes | Refused data is lost, and the limit must be sized | Memory limiter README, opentelemetry-collector |
| Tail sampling | Keeps or drops whole traces after they complete | Direct: fewer traces stored | Needs all spans of a trace on one collector; holds memory during decision_wait | Tail sampling README, opentelemetry-collector-contrib |
The config order matters as much as the choice of levers. The OpenTelemetry Collector configuration page notes that “the order of processors dictates the order in which data is processed.” A common order, which the README guidance supports, is memory limiter first, then filtering or tail sampling, then batching. The memory limiter guards the collector before any work is done, and the batch processor packages the final output.
Which to pick
My pick for most teams is to start with the filter processor and the memory limiter, because they are deterministic and easy to reason about. Add batching for throughput, and leave tail sampling for the point where you have a routing tier and a clear list of traces you must keep.
- Small estate, few services: memory limiter, batch and a short filter list for debug logs. Tail sampling is not worth the routing work yet.
- Many services, high span volume: add tail sampling behind a trace-ID routing tier, and keep error and slow traces by policy.
- Heavy metric cardinality: start with filters on the labels no dashboard uses, then review the series count again after a week.
- Regulated data in logs: the filter processor can drop matching items, but a legal duty to retain or delete telemetry is a question for counsel, not for a pipeline setting.
Whichever levers you pick, record the metered volume for each signal before the change and again after it, comparing the same weekdays so that weekly traffic patterns do not distort the result. Keep the change in version control with its date, so a later spike in the bill can be traced to a specific pipeline release. Review the filter list each quarter, because the dashboards and alerts that read the data change over time, and a rule that was safe last year can hide a signal you now need.
Frequently asked questions
Does batching reduce the bill?
Not on its own. The batch processor reduces the number of outgoing connections and improves compression, but the data volume stays the same. Use the filter processor or sampling to reduce the metered volume.
Where should the memory limiter go?
First in the pipeline, according to the processor’s README. Placing it first lets it refuse data before other processors spend memory on it.
Can I sample traces on a single collector?
Yes, if one collector receives every span of every trace. Once you run several sampling collectors, you need routing that sends all spans of a trace to the same instance. The tail sampling README makes this a requirement for effective decisions.
What is the default wait before a tail sampling decision?
The default decision_wait is 30s in the upstream README. Check your latency distribution before you change the value, because a longer wait holds more spans in memory.



