[8.x](backport #6315) [otel] add loadbalancing exporter component #6467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds the Otel loadbalancing exporter to the elastic-agent.
Why is it important?
It gives the ability to route logs, metrics or traces to different OTLP endpoints depending on the configured
routing_key
. This feature can be helpful when distributing the processing load among different collectors. For example, current APM OTLP data is directly processed with the lsminterval, elastictrace and signaltometrics components, but all those components could be moved from the collection/edge collectors to a set of collector that only handle data transformations. One of the main benefits of the latest approach is the separation of concerns, processing collectors would be part of another resource entity that would be managed independetly.Sample configuration that routes traces based on their service.name key:
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
How to test this PR locally
Related issues
Questions to ask yourself
This is an automatic backport of pull request #6315 done by [Mergify](https://mergify.com).