-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: tracing of gateway requests #143
Conversation
`Authorization` header. The value of the `Authorization` header should match | ||
the value in the `RAINBOW_TRACING_AUTH` environment variable. | ||
|
||
### `RAINBOW_SAMPLING_FRACTION` |
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 theory could invent an OTEL_TRACES_SAMPLER
and OTEL_TRACES_SAMPLER_ARG
if that makes more sense, but this seemed fine for now.
}, | ||
&cli.Float64Flag{ | ||
Name: "sampling-fraction", | ||
Value: 0, |
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.
Should this default to 1 instead of 0? I'd been using 0 with some testing to prevent flooding as I was more interested in Traceheaders, but the default OTEL sampler is "parentbased_always_on".
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.
A value of zero seems like the expected default, so that no sampling is done.
9495073
to
dc7ef6e
Compare
dc7ef6e
to
395c2e1
Compare
Co-authored-by: Andrew Gillis <gammazero@users.noreply.github.com>
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.
Lgtm.
Rebased on top of #150 to use release version of boxo and libp2p/go-libp2p-routing-helpers#84 + added changelog / some docs. Merging – I will continue and release tomorrow.
Updates some dependencies (ipfs/boxo#615) to improve tracing while also:
cc @ns4plabs