What is the difference between the Collector core, contrib and a custom build?
IntermediateConceptTracing & OpenTelemetry
Answer
- otelcol (core): a small set of stable components (OTLP receiver/exporter, batch, memory_limiter, debug).
- otelcol-contrib: hundreds of community components (Kafka, filelog, k8sattributes, tail_sampling, prometheusremotewrite). Convenient, but a large binary and attack surface.
- otelcol-k8s: a distribution trimmed for Kubernetes use.
- Custom build with the OpenTelemetry Collector Builder (
ocb): you list exactly the components you need in a manifest.
# builder-config.yaml
dist: { name: otelcol-acme, output_path: ./dist }
receivers:
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.115.0
exporters:
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.115.0
In production we prefer a custom build or vendor distro (Grafana Alloy, ADOT) for a smaller CVE footprint.
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