Add NewBeatReceiver function for beats as otel receivers#40816
Add NewBeatReceiver function for beats as otel receivers#40816leehinman merged 4 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
|
|
This pull request doesn't have a |
510b9ed to
6fd0fee
Compare
6fd0fee to
e44e465
Compare
e44e465 to
60eaeee
Compare
cmacknz
left a comment
There was a problem hiding this comment.
I like this, thanks! I would like to make sure we have a test that creates a beat receiver with this method eventually, but I also recognize that requires a lot of work we haven't done yet.
* Add NewBeatReceiver function for beats as otel receivers (cherry picked from commit 8feb181)
Proposed commit message
This PR adds a new function
NewBeatReceiverto instantiate a beat as an otel receiver. The code is similar to thecreateBeaterandconfigurefunctions. It is separate to so that understanding of tel receivers doesn't leak into to existing Beat setup. This also makes it much safer to change the receiver setup without breaking the traditional beat setup.Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
None
Author's Checklist
How to test this PR locally
Integration tests will catch if this change breaks regular beats instantiation. When receivers are added that will test that the new function works correctly.
Related issues
Use cases
Screenshots
Logs