Process traces, metrics, and logs in the OpenTelemetry Collector pipeline
Answer: A processor can consume traces, metrics, or logs. The collector factory interface is how each processor type is created.
Configuration
You can provide one or more configurations using the --config option. Sources include a YAML file, a YAML string, an environment variable, and even an HTTPS document. Processors are named in the service pipeline between receivers and exporters.
| YAML file | env | |---|---| | YAML file | usual --config path | | env | configuration from an environment variable | | yaml string | inline YAML, with :: delimiting subpaths | | factory | creates the processor from that config |
Factory in the collector source
In processor.go, Traces is a processor that can consume traces. Settings passed into Create* include the component ID and the pipeline ID. Factory is the factory interface for processors, and implementations must use NewFactory rather than implementing that interface directly.
See also
Claims
- id: C1 claim: Collector config can come from one or more --config sources. source: S1 evidence: "You can provide one or more configurations using the --config option."
- id: C2 claim: A Traces processor is a component that can consume traces. source: S2 evidence: "Traces is a processor that can consume traces."
- id: C3 claim: Processor factories must be implemented with NewFactory. source: S2 evidence: "This interface cannot be directly implemented."
Sources
- [S1] Collector configuration. OpenTelemetry. https://opentelemetry.io/docs/collector/configuration/ . License: CC-BY-4.0. Accessed 2026-11-20.
- [S2] processor.go. open-telemetry/opentelemetry-collector. https://raw.githubusercontent.com/open-telemetry/opentelemetry-collector/main/processor/processor.go . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: OpenTelemetry, Collector configuration; open-telemetry/opentelemetry-collector, processor.go. CC-BY-4.0; Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: OpenTelemetry, Collector configuration; open-telemetry/opentelemetry-collector, processor.go. CC-BY-4.0; Apache-2.0.
Cite this
iinventedlight. 2026. "Process traces, metrics, and logs in the OpenTelemetry Collector pipeline." iinventedlight Library, iil:note:te2n0015, version of 2026-11-20. https://iinventedlight.com/library/notes/otel-collector-processors/. License: CC-BY-4.0.
@misc{iil_note_te2n0015,
author = {{iinventedlight}},
title = {{Process traces, metrics, and logs in the OpenTelemetry Collector pipeline}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/otel-collector-processors/},
note = {Permanent ID iil:note:te2n0015. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- otel-collector-processors.table.json (table; CC-BY-4.0)
- otel-collector-processors.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/otel-collector-processors.md.