-
Notifications
You must be signed in to change notification settings - Fork 674
otelgin: update default span name to align with semantic conventions #6381
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6381 +/- ##
=====================================
Coverage 80.9% 81.0%
=====================================
Files 204 204
Lines 18065 18079 +14
=====================================
+ Hits 14630 14650 +20
+ Misses 3007 3003 -4
+ Partials 428 426 -2
🚀 New features to boost your workflow:
|
SpanNameFormatter
optionSpanNameFormatter
option
Based on the ongoing discussions with the need or not for |
OK, I will add another draft version of the PR (which may not have passed unit testing and CI). |
Temporarily closed for now; will be reprocessed once there are further developments. |
@flc1125 I missed this issue the first time around, but what was the blocker here? |
It's been quite some time, and I recall it was because there were still some content or semantic agreements that needed confirmation. Moreover, discussions were still ongoing. So, this matter was temporarily put on hold. Due to the prolonged lack of progress, I have decided to close it for now. Until there are new developments, I will consider reopening it. If there are any new changes, I will continue to address this issue. |
#7088 These two issues may have some correlation. |
Yep this seems to resolve that issue. I don’t see any blockers regarding only updating the default span names. Unless the goal was to have the logic sit in the semconv package and avoid duplication. |
OK, if there are no problems hindered for now, I will continue to track this issue. |
Do you mind either updating the PR title or opening a new PR to make it clear that we’re not deprecating SpanNameFormatter |
SpanNameFormatter
option
It has been changed. If there is any mistake in the description, can you help me adjust it. (PS: My English is not very good) |
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.
FullPath()
is a high cardinality value. We should make this the HTTP pattern/route, not the path.
If the path is /blog/1234
, and the route is defined as /blog/{id}
then, the latter should be used.
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.
Left minor comments. It overall looks good.
instrumentation/github.com/gin-gonic/gin/otelgin/test/gin_test.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Damien Mathieu <[email protected]>
…e` for clarity" This reverts commit c662bf1.
Co-authored-by: Damien Mathieu <[email protected]>
Unless someone objects, I will merge this tomorrow. |
fixes #7088