Skip to content

Use the newly introduced MergeCtx to propogate metadata keys in batch context #41937

@lahsivjar

Description

@lahsivjar

Component(s)

exporter/elasticsearch

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

open-telemetry/opentelemetry-collector#13460 introduced MergeCtx in the batch settings to allow defining a custom merge function for the context which can be used to propagate metadata keys in batch context.

Describe the solution you'd like

As per open-telemetry/opentelemetry-collector#13460 (comment), we would eventually have metadata keys in the batch API and preserved in the batch context. However, in short term, we could use the MergeCtx to define a merge func to do the same.

Describe alternatives you've considered

No response

Additional context

No response

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

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions