Skip to content
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

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

jpkrohling
Copy link
Member

@jpkrohling jpkrohling commented Dec 6, 2021

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]

@jpkrohling jpkrohling requested review from a team and owais December 6, 2021 13:03
@codecov
Copy link

codecov bot commented Dec 6, 2021

Codecov Report

Merging #4514 (3970470) into main (acf6556) will decrease coverage by 0.02%.
The diff coverage is 62.50%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
receiver/otlpreceiver/otlp.go 78.08% <50.00%> (-1.50%) ⬇️
config/confighttp/confighttp.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acf6556...3970470. Read the comment docs.

CHANGELOG.md Outdated Show resolved Hide resolved
config/confighttp/confighttp_test.go Outdated Show resolved Hide resolved
config/confighttp/confighttp_test.go Outdated Show resolved Hide resolved
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
componenttest.NewNopTelemetrySettings(),
http.HandlerFunc(func(http.ResponseWriter, *http.Request) {}))
if err != nil {
panic(err)
Copy link
Member

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.

Copy link
Member Author

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.

@bogdandrutu bogdandrutu merged commit 83206c5 into open-telemetry:main Dec 6, 2021
jpkrohling added a commit to jpkrohling/opentelemetry-collector-contrib that referenced this pull request Dec 7, 2021
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]>
jpkrohling added a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Dec 7, 2021
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prepare confighttp for auth changes
3 participants