Files
telemetry/otelcol/testdata/otelcol-statuswatcher.yaml
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

29 lines
428 B
YAML

receivers:
nop:
processors:
nop:
unhealthy:
exporters:
nop:
extensions:
statuswatcher:
service:
extensions: [statuswatcher]
pipelines:
traces:
receivers: [nop]
processors: [nop,unhealthy]
exporters: [nop]
metrics:
receivers: [nop]
processors: [nop,unhealthy]
exporters: [nop]
logs:
receivers: [nop]
processors: [nop,unhealthy]
exporters: [nop]