Skip to content
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

Support events without domain attr #268

Merged

Conversation

LikeTheSalad
Copy link
Contributor

The event.domain attribute was removed from the semconv spec here and, the values that would otherwise be set into the event.domain attribute, must now be set as a namespace to the event.name value.

This PR is to make apm-data aware of this change while keeping backward compatibility, so that both implementations are properly identified as events.

@LikeTheSalad LikeTheSalad requested a review from a team as a code owner April 25, 2024 09:29
@elastic-apm-tech elastic-apm-tech added the safe-to-test Changes are safe to run in the CI label Apr 25, 2024
event.Event.Category = "device"
if eventName == "crash" {
action := strings.TrimPrefix(eventName, "device.")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal of trimming the device. prefix here is so that any existing verifications down the road for specific action names, such as crash for example, keep working as usual. However, I'm open to alternative approaches in case this change could cause issues that I might not be aware of.

@LikeTheSalad LikeTheSalad requested review from a team, estolfo and AlexanderWert April 25, 2024 09:42
@LikeTheSalad LikeTheSalad requested a review from bryce-b May 29, 2024 14:08
Copy link
Member

@kruskall kruskall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kruskall kruskall enabled auto-merge (squash) June 7, 2024 22:21
@kruskall kruskall merged commit 0ea757a into elastic:main Jun 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe-to-test Changes are safe to run in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants