-
Notifications
You must be signed in to change notification settings - Fork 116
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
Added s3-prefix to S3 destination.service.resource #738
Conversation
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.
LGTM.
Should we add a test case for that in https://github.com/elastic/apm/blob/main/tests/agents/json-specs/service_resource_inference.json though?
I gave it a shot and added the following test locally:
At least for the Java agent this test doesn't add any value, because it passes successfully without having implemented the new @z1c0 if you still see value in adding this test (e.g. for .Net) I can add it. Also please feel free to make any modifications to my suggested test. |
You are absolutely right @JonasKunz - the test case does not add any value (same for .NET). |
This PR is essentially a followup of #683 regarding the second point in this comment:
The reason why this issue came back on the table is that @AlexanderWert encountered it in form of a defect in the UI (see elastic/apm-agent-java#2849).
Even though
context.destination.service.resource
is deprecated, it is likely to stay around for a while and impact UI features. Therefore we need to still fix it imo.To my knowledge, adding the
s3/
would have the following negative consequences:context.destination.service.resource
This list might not be exhaustive, feel free to comment if you come up with additional concerns.
In my opinion these negative consequences are acceptable, because I would classify this change as a bugfix.
We should however explicitly highlight this change in the agent changelogs when implementing this spec update.
sanitize_field_names
)CODEOWNERS
)To auto-merge the PR, add
/
schedule YYYY-MM-DD
to the PR description.If this spec adds a new dynamic config option, add it to central config.