Open
Description
Component(s)
No response
Is your feature request related to a problem? Please describe.
We would need to have a way to define tenants from attributes. The headerssetterextension
can automatically set tenants (or other headers) from the context, but there is not way to modify/update the context. See #27901 for more details.
Describe the solution you'd like
We are not sure about the solution. Potential solutions are:
- Create a dedicated component which is able to modify the context.
- Extend
groupbyattrprocessor
(or other processor) to group resources with a new context. - Extend the OTTL to include a new function.
The problem is the context it needs to be changed is the connection context, "one level up" of the resource context.
Describe alternatives you've considered
Right now we are using a custom processor to overcome this limitation. This processor was not developed to be committed to Otel repos, it started as a PoC and now we are using it internally. If agreed, we are happy to integrated in Otel Contrib.
Additional context
No response