-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support events without domain attr #268
Conversation
event.Event.Category = "device" | ||
if eventName == "crash" { | ||
action := strings.TrimPrefix(eventName, "device.") |
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.
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.
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.
Thanks!
The
event.domain
attribute was removed from the semconv spec here and, the values that would otherwise be set into theevent.domain
attribute, must now be set as a namespace to theevent.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.