Applications can send telemetry straight to a backend, but a Collector in between gives one place to control it: drop noisy data, remove sensitive fields, add environment tags, sample traces and send copies to more than one destination. It also takes retries and buffering off the application.
How the Collector works
A Collector is configured in YAML with components and the pipelines that connect them:
- Receivers take data in, such as OTLP from SDKs, Prometheus scrapes or log files.
- Processors change data on the way through: limiting memory, adding or removing attributes, filtering and sampling.
- Exporters send data out, such as OTLP over HTTP to a backend.
- Connectors join two pipelines, for example to build metrics from spans.
- Extensions add capabilities outside the data path, such as health checks and storage for persistent queues.
Each pipeline handles one signal (traces, metrics or logs) and lists the receivers, processors and exporters it uses.
Agent vs. gateway
- Agent: a Collector on each host, or as a sidecar or DaemonSet in Kubernetes, close to the applications. It collects host metrics and logs and adds local context.
- Gateway: a central pool of Collectors behind one OTLP endpoint, usually one per cluster, data center or region. It handles work that needs a central view, such as tail sampling, and gives one controlled path out to backends.
Many teams run both: agents forward to a gateway, and the gateway exports to the backend.
Distributions and batching
The project publishes ready-made builds: the core distribution (otelcol), the contrib distribution (otelcol-contrib) with many more components, and a Kubernetes distribution. You can also build your own with the OpenTelemetry Collector Builder. In November 2026 the project deprecated the batch processor in favor of batching in each exporter's sending queue, and plans to remove it in May 2027.
The Collector with Atatus
Atatus accepts OTLP over HTTP, so a Collector sends to it with the otlphttp exporter, pointed at https://otel-rx.atatus.com with your API key in the api-key header. Traces, metrics and logs arrive together, joined by trace ID. See OpenTelemetry in Atatus, running a Collector gateway and OTLP.