Skip to content
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

support v0.3.0 of configuration file format #1423

Open
codeboten opened this issue Oct 31, 2024 · 2 comments
Open

support v0.3.0 of configuration file format #1423

codeboten opened this issue Oct 31, 2024 · 2 comments
Assignees
Labels
Work In Progress This is a Work in Progress, not ready to be merged

Comments

@codeboten
Copy link
Contributor

Is your feature request related to a problem?
I'm trying to load the current kitchen-sink example from the opentelemetry-configuration repository, but unfortunately I'm running into a problem setting headers for my OTLP exporter. This is the error I see

Invalid type for path "open_telemetry.tracer_provider.processors.1.batch.exporter.otlp.headers.0". Expected "scalar", but got "array".

It's caused by the change in headers format from a map to an array of name/value objects in open-telemetry/opentelemetry-configuration@f89f35a

Describe the solution you'd like
I would like to be able to use the following header configuration

    headers:
      - name: api-key
        value: "1234"

Describe alternatives you've considered
not using the latest file format, but that didn't work either because v0.3 is the only supported format :D

@brettmc brettmc self-assigned this Oct 31, 2024
@brettmc
Copy link
Collaborator

brettmc commented Oct 31, 2024

Thanks for raising this. I've got a work-in-progress to implement the remaining features for 0.3 compatibility and I should have a PR ready in a couple of days...

@brettmc brettmc added the Work In Progress This is a Work in Progress, not ready to be merged label Oct 31, 2024
@codeboten
Copy link
Contributor Author

Thanks @brettmc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Work In Progress This is a Work in Progress, not ready to be merged
Projects
None yet
Development

No branches or pull requests

2 participants