-
Notifications
You must be signed in to change notification settings - Fork 36
Remove overwriting the default HTTP transport #1112
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
base: main
Are you sure you want to change the base?
Changes from 7 commits
76c6dd5
125a33f
1f2ae64
92cc170
ed478c5
1b1ccaa
846588b
2b04dd2
f8c37c9
309d697
6b0a8bb
03ddee4
1130ec8
bb2d6cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ import ( | |
|
|
||
| prombridge "go.opentelemetry.io/contrib/bridges/prometheus" | ||
| "go.opentelemetry.io/contrib/exporters/autoexport" | ||
| "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" | ||
| "go.opentelemetry.io/contrib/propagators/autoprop" | ||
| "go.opentelemetry.io/otel" | ||
| otelprometheus "go.opentelemetry.io/otel/exporters/prometheus" | ||
|
|
@@ -116,8 +115,6 @@ func SetupOpenTelemetry(ctx context.Context) (*OTelResources, error) { | |
| return nil, err | ||
| } | ||
|
|
||
| http.DefaultTransport = otelhttp.NewTransport(http.DefaultTransport) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My problem with this one is that it will disable monitoring http metrics for the following paths:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can add these individually, probably How can an external service call porch server directly btw? Shouldn't it just be through the kube apiserver?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add these individual wrappers after #1111 is merged and this is rebased.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm ok with the current level of setup, but please pick up tasks for the 2 that are being removed. |
||
| http.DefaultClient.Transport = http.DefaultTransport | ||
| klog.Infof("OpenTelemetry initialized in %s", time.Since(setupTiming)) | ||
| return res, nil | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.