Skip to content

Enable to use a function for headers in exporters #5756

Open
@rmannibucau

Description

@rmannibucau

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

I need to send dynamic headers (think oauth2 token refresh even if not exactly my use case it is exactly the same kind of issue).

Describe the solution you'd like

The http transport takes a function returning headers but it is not exposed in the oltp exporter (trace one for me) which only supports a static map/record.

Idea is to just enable it to be a static record or a function returning a record.

Describe alternatives you've considered

Dropping and recreating the exporter and facading the dynamic impl but this is overkill.

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