In what order should Collector processors run, and why?
AdvancedConceptTracing & OpenTelemetry
Answer
Processors execute in the listed order, so order is a correctness and stability decision.
processors: [memory_limiter, k8sattributes, filter, transform, tail_sampling, batch]
memory_limiterfirst: it refuses data (returns a retryable error to the sender) before memory is exhausted, so the Collector is not OOMKilled.- Enrichment (
k8sattributes,resourcedetection) early, so later filters can use those attributes. - Filtering / dropping before expensive work, so you do not process data you will throw away.
- Sampling after enrichment.
batchlast: it groups data right before export to cut network calls.
memory_limiter:
check_interval: 1s
limit_percentage: 80
spike_limit_percentage: 20
Pair it with GOMEMLIMIT set near the container limit.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?Beginner