tracing: move off opentracing interfaces#56012
tracing: move off opentracing interfaces#56012craig[bot] merged 2 commits intocockroachdb:masterfrom
Conversation
`span.go` is where you'd go look for `type Span`. Release note: None
0b7068c to
4e9be36
Compare
|
@andreimatei no need to review, but I sense that you will like this |
knz
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r1, 66 of 66 files at r2.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @irfansharif)
irfansharif
left a comment
There was a problem hiding this comment.
#56004 should make things clearer in CI but reminder to run bazel run //:gazelle (or make bazel-generate) after the each commit (rename + new file). We should probably add git commit hooks or something here to do this automatically. Sorry!
Reviewable status:
complete! 2 of 0 LGTMs obtained (waiting on @tbg)
pkg/util/tracing/tracer.go, line 657 at r2 (raw file):
type activeSpanKey struct{} func SpanFromContext(ctx context.Context) *Span {
I think we'll want comments here over this exported method (and below) to avoid linter failures.
4e9be36 to
bb6e9a6
Compare
|
Nice to see those and happily obliging: |
We were previously shoehorning our tracing subsystem into the opentracing framework. This resulted in lots of bending over backwards to no real gain. Move off the interfaces so that we can more easily refactor the code for always-on tracing as well as make it more digestible. This commit is mostly mechanical. A bunch of code around the RPC interceptors was cribbed from the `otgrpc` package. Cleanups are delegated to additional commits. TestFollowerReadsWithStaleDescriptor, skipped temporarily in cockroachdb#55937, passes again due to the rearrangement in `startSpanGeneric` (we were setting the spanID too late, which led to tags being dropped). Release note: None
bb6e9a6 to
429ab2d
Compare
|
bors r=knz,irfansharif |
|
Build succeeded: |
We were previously shoehorning our tracing subsystem into the
opentracing framework. This resulted in lots of bending over
backwards to no real gain.
Move off the interfaces so that we can more easily refactor
the code for always-on tracing as well as make it more digestible.
This commit is mostly mechanical. A bunch of code around the
RPC interceptors was cribbed from the
otgrpcpackage.Cleanups are delegated to additional commits.
TestFollowerReadsWithStaleDescriptor, skipped temporarily in #55937,
passes again due to the rearrangement in
startSpanGeneric(wewere setting the spanID too late, which led to tags being dropped).
Release note: None