-
Notifications
You must be signed in to change notification settings - Fork 108
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
refactor(gateway): consistent tracing names #261
Conversation
7b67660
to
c76cb01
Compare
Codecov Report
@@ Coverage Diff @@
## main #261 +/- ##
==========================================
- Coverage 47.89% 47.85% -0.04%
==========================================
Files 273 273
Lines 33186 33186
==========================================
- Hits 15893 15880 -13
- Misses 15616 15624 +8
- Partials 1677 1682 +5
|
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.
@hacdias do you have a screenshot how it looks like in Jaeger UI when traced in Kubo or bifrost-gateway (whichever is easier for you)?
See https://github.com/ipfs/kubo/blob/master/docs/environment-variables.md#how-to-use-jaeger-ui
(examples in #233, just want to eyeball it so we are happy with how it looks)
c76cb01
to
8e43931
Compare
@lidel here it is. I re-added the |
8e43931
to
85d963b
Compare
85d963b
to
1a5f5ce
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.
In the context of ipfs-inactive/bifrost-gateway#68, I decided to make the tracing names more consistent. When we moved the gateway to boxo, and then on #176, we added and changed some of the tracings, but they were not consistent.
What I did here:
Handler.
to all handler tracings, similar to what we had on theIPFSBackend
withIPFSBackend.
.boxo/gateway
to clearly indicate the sub-packageand stopped pre-pending.Gateway.
in the tracing name, since we already have the gateway part in the tracer name.