Skip to content

[configgrpc, confighttp] update headers to array of name/value pairs to match configuration schema #13930

@codeboten

Description

@codeboten

Component(s)

No response

Describe the issue you're reporting

Starting with version 0.3.0 of the configuration schema, the headers field was changed to use a name/value pair (see open-telemetry/opentelemetry-configuration#115). Configuration looks like this:

Before v0.3.0

          headers:
            "key1": "value1"

v0.3.0 and newer

          headers:
          - name: "key1"
            value: "value1"

Supporting this natively in the collector means we now have multiple ways of configuring what feels like the same field (i know its configured for different components/areas but as a user, it's confusing).

I'm opening this issue to discuss migrating configgrpc's and confighttp's headers field to match the configuration schema. Doing this would require feature gates to support both formats for some version, and warning end users of the change.

An alternative to supporting only one could be to support both moving forward.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions