-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[test] Replace OT const with OTEL #4624
[test] Replace OT const with OTEL #4624
Conversation
cmd/query/app/handler_options.go
Outdated
func (handlerOptions) Tracer(tracer *jtracer.JTracer) HandlerOption { | ||
return func(apiHandler *APIHandler) { | ||
apiHandler.tracer = tracer | ||
apiHandler.tracer.OTEL = tracer.OTEL |
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.
why this change?
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.
I did this to workaround if it was desirable.
cmd/query/app/handler_options.go
Outdated
@@ -61,10 +61,10 @@ func (handlerOptions) QueryLookbackDuration(queryLookbackDuration time.Duration) | |||
} | |||
} | |||
|
|||
// Tracer creates a HandlerOption that initializes OpenTracing tracer | |||
// Tracer creates a HandlerOption that initializes Opentelemetry tracer |
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.
// Tracer creates a HandlerOption that initializes Opentelemetry tracer | |
// Tracer creates a HandlerOption that passes the tracer to the handler |
Signed-off-by: Afzal Ansari <[email protected]>
a7bffdb
to
30b94b0
Compare
Signed-off-by: Afzal <[email protected]>
30b94b0
to
70012d2
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #4624 +/- ##
=======================================
Coverage 97.06% 97.07%
=======================================
Files 301 301
Lines 17877 17878 +1
=======================================
+ Hits 17353 17355 +2
+ Misses 420 419 -1
Partials 104 104
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Which problem is this PR solving?
otel trace
spans type to span modelShort description of the changes
otel trace
spans const i.e.ext.SpanKind..
withtrace.SpanKind..