-
Notifications
You must be signed in to change notification settings - Fork 104
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
remove service.name -> g.co/gae/app/module mapping from trace exporter's default mapping #715
Conversation
Codecov Report
@@ Coverage Diff @@
## main #715 +/- ##
=======================================
Coverage 69.66% 69.67%
=======================================
Files 42 42
Lines 4840 4838 -2
=======================================
- Hits 3372 3371 -1
- Misses 1317 1318 +1
+ Partials 151 149 -2
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ba36ea4
to
7c00afb
Compare
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.
Is there any concern of this being a breaking change?
We expect users to prefer service.name, and don't expect many to be using g.co/gae/app/module. |
This actually IS a breaking change since |
@AndreasBergmeier6176 sorry about that! I've raised it with the UI team, and will report back here when it is fixed. We did work with the UI team on this, but missed the issue you've encountered. Please let me know if you find any other discrepancies caused by this change. |
@AndreasBergmeier6176 the UI team got back to me, and it isn't an easy problem to fix because of limitations on the trace query language. They said it will likely be fixed as part of broader changes planned for later this year. In the meantime, you can revert back to the previous behavior with: trace.New(
trace.WithAttributeMapping(func(k attribute.Key) attribute.Key {
switch k {
case "http.path":
return "/http/path"
case "http.host":
return "/http/host"
case "http.method":
return "/http/method"
case "http.user_agent":
return "/http/user_agent"
case "http.status_code":
return "/http/status_code"
case "service.name":
return "g.co/gae/app/module"
}
return k
})
) Again, very sorry about that. |
Fixes #711
The UI now supports service.name.
This brings the go trace exporter in-line with trace exporters in other languages.