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.