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.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & OpenTelemetry