-
Notifications
You must be signed in to change notification settings - Fork 5k
[beatreceiver] Add otel test framework #44705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
3e23d57
to
59a66b5
Compare
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For integration tests it is nice to have a binary that you can run by hand. For example with all the current filebeat integration tests we have filebeat.test
. Can we modify the mage file so we get a binary that we could run by hand and use it the same way that we use filebeat.test
for the current beat integration tests? It would be nice if this binary could take beat configuration or otel configuration files.
The current setup doesn't just test if the receiver does what it is supposed to do, it also tests the conversion logic for beat config to otel config. That isn't necessarily bad, but it does mean that we are limited by the conversion logic in things we can test.
the conversion logic just moves everything under As for the otel binary - yeah that sounds better than this approach. I raised another PR here #44855. Can you take a look |
Agree partially with you. Yes, it is true that writting the full config is quite verbose, I also don't want to write a full otel config each time, but we have different integration test scenarios that I trully hope this test suite will be able to provide coverage, some of them:
|
Hey @khushijain21, I don’t think you meant to close this, did you? |
Proposed commit message
This PR adds otel test binary that helps us write integration tests close to beats.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Related issues