opentelemetry-collector
opentelemetry-collector copied to clipboard
temporality_preference is ignore when using v0.2.0 of the configuration
Component(s)
service
What happened?
The configuration temporality_preference is ignored if the service::telemetry::metrics configuration is parsed by the v0.2.0 schema. This is because the fix to support temporality preference only exists in the v0.3.0 package
Collector version
main
OpenTelemetry Collector configuration
- periodic:
exporter:
otlp:
endpoint: https://${MY_BACKEND}
headers:
key: value
protocol: http/protobuf
temporality_preference: delta
interval: 10000
timeout: 5000
A workaround for this is to update the config to parse correctly w/ v0.3.0
- periodic:
exporter:
otlp:
endpoint: https://${MY_BACKEND}
headers:
- name: key
value: value
protocol: http/protobuf
temporality_preference: delta
interval: 10000
timeout: 5000
This bug will eventually go away once the config schema releases v1.0 and we can use feature-gates to deprecate old configuration support