-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add tracing to bundle/discovery download #5973
Add tracing to bundle/discovery download #5973
Conversation
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.
Thanks for the contribution @mjungsbluth! LGTM.
plugins/plugins.go
Outdated
@@ -365,6 +367,13 @@ func WithTracerProvider(tracerProvider *trace.TracerProvider) func(*Manager) { | |||
} | |||
} | |||
|
|||
// DistributedTracingOpts sets the options to be used by distributed tracing. |
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.
Nit: DistributedTracingOpts
-> WithDistributedTracingOpts
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.
Ah, ok missed that one(the convention differs on the place where it is used. Will change it for consistency
plugins/rest/rest_test.go
Outdated
} | ||
|
||
if exp, act := 1, mock.called; exp != act { | ||
t.Errorf("calls to NewTransported: expected %d, got %d", exp, act) |
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.
Nit: Do you mean NewTransport
?
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.
Yes, will change it at the place where it was copied from as well 😀
70c5884
to
bf4063d
Compare
Signed-off-by: Magnus Jungsbluth <magnus@jungsbluth.de>
bf4063d
to
fb2c054
Compare
Why the changes in this PR are needed?
Addresses #5967, adds the ability to configure distributed tracing options to plugin manager and rest client.
This allows using an existing distributed tracing infrastructure that is used for the http built-in for bundle downloads without relying in OpenTelemetry.
What are the changes in this PR?
tracing.Options
to the relevant places to configure bundle download tracing