opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

temporality_preference is ignore when using v0.2.0 of the configuration

Open codeboten opened this issue 5 months ago • 2 comments

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

codeboten avatar May 22 '25 20:05 codeboten

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

codeboten avatar May 22 '25 20:05 codeboten

This bug will eventually go away once the config schema releases v1.0 and we can use feature-gates to deprecate old configuration support

codeboten avatar May 22 '25 20:05 codeboten