Skip to content

Make Headers Setter extension context default value configurable #35151

@kyo-ke

Description

@kyo-ke

Component(s)

No response

Is your feature request related to a problem? Please describe.

We are pushing traces to Tempo via opentelemetry collector.
when we push trace to multitenant Tempo we need to handle X-Scope-OrgID header using Headers Setter extension.
in current version if user do not specify X-Scope-OrgID this extension automatically use "" as value.(Default value is hardcoded)
and sometimes we want to use specific tenant to store user's trace with no X-Scope-OrgID

problem is we cannot configure default value when specified key is missing.
(https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/extension/headerssetterextension/internal/source/context.go#L24)

Describe the solution you'd like

Make default value configurable for Headers Setter extension's context functionality.
we will create PR for this.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions