-
Notifications
You must be signed in to change notification settings - Fork 1.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
confighttp
: add component.Host parameter to ToServer
#4514
confighttp
: add component.Host parameter to ToServer
#4514
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4514 +/- ##
==========================================
- Coverage 90.68% 90.66% -0.03%
==========================================
Files 179 179
Lines 10425 10429 +4
==========================================
+ Hits 9454 9455 +1
- Misses 755 757 +2
- Partials 216 217 +1
Continue to review full report at Codecov.
|
c4c9533
to
575c412
Compare
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
575c412
to
bc19bb3
Compare
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
componenttest.NewNopTelemetrySettings(), | ||
http.HandlerFunc(func(http.ResponseWriter, *http.Request) {})) | ||
if err != nil { | ||
panic(err) |
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.
Just require no error is the same.
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.
This is within an Example code, not a test.
The PR open-telemetry/opentelemetry-collector#4514 brought breaking changes to confighttp. This PR migrates the consumers of that to the new signature. Signed-off-by: Juraci Paixão Kröhling <[email protected]>
The PR open-telemetry/opentelemetry-collector#4514 brought breaking changes to confighttp. This PR migrates the consumers of that to the new signature. Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Closes #4512 by adding the component.Host parameter to the confighttp.ToServer function, in preparation for the changes related to configauth. This also changes the order of arguments, to make it consistent with configgrpc.
Signed-off-by: Juraci Paixão Kröhling [email protected]