Files
Andrew WilkinsandGitHub 8c67c7d545 otelcol: add telemetry.Factory to Factories (#13950)
#### Description

Add a `TelemetryFactory telemetry.Factory` field to `otelcol.Factories`.
If it is nil, it will default to an `otelconftelemetry` factory.

This enables overriding telemetry providers.

#### Link to tracking issue

Fixes #4970

#### Testing

- Ran the collector without any telemetry config, verified that logging
still works as expected
- Ran the collector with standard (otelconftelemetry) config, verified
it is used as expected (I just smoke tested by enabling debug logging --
more comprehensive unit tests exist)
- Ran a modified version of the collector with a custom telemetry
factory

#### Documentation

N/A
2025-10-21 08:42:12 +00:00

16 lines
166 B
YAML

receivers:
nop:
processors:
nop:
exporters:
nop:
service:
pipelines:
traces:
receivers: [nop]
processors: [invalid]
exporters: [nop]