Skip to content

temporality_preference is ignore when using v0.2.0 of the configuration #13080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
codeboten opened this issue May 22, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@codeboten
Copy link
Contributor

codeboten commented May 22, 2025

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 codeboten added the bug Something isn't working label May 22, 2025
@codeboten
Copy link
Contributor Author

codeboten commented May 22, 2025

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant