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

otelrestful: support WithPublicEndpoint and WithPublicEndpointFn #3563

Merged

Conversation

frzifus
Copy link
Member

@frzifus frzifus commented Mar 9, 2023

The implementation is strongly inspired by otlphttp.

Closes #3562

@frzifus frzifus force-pushed the otelrestful_support_with_public_endpoint branch 2 times, most recently from f92fab5 to 3cea463 Compare March 9, 2023 15:52
@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Merging #3563 (119ccff) into main (1eca627) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3563   +/-   ##
=====================================
  Coverage   69.9%   70.0%           
=====================================
  Files        147     147           
  Lines       6934    6948   +14     
=====================================
+ Hits        4851    4865   +14     
  Misses      1959    1959           
  Partials     124     124           
Impacted Files Coverage Δ
...thub.com/emicklei/go-restful/otelrestful/config.go 100.0% <100.0%> (ø)
...hub.com/emicklei/go-restful/otelrestful/restful.go 100.0% <100.0%> (ø)

@frzifus frzifus force-pushed the otelrestful_support_with_public_endpoint branch 3 times, most recently from ae97b00 to 865dc92 Compare March 9, 2023 16:20
@frzifus frzifus marked this pull request as ready for review March 9, 2023 16:20
@frzifus frzifus requested a review from a team March 9, 2023 16:20
@dmathieu
Copy link
Member

dmathieu commented Mar 9, 2023

otelhttp also has WithPublicEndpointFn. How about supporting both?

@frzifus
Copy link
Member Author

frzifus commented Mar 9, 2023

sure - shouldn't be to much effort.

@frzifus frzifus changed the title otelrestful: support WithPublicEndpoint otelrestful: support WithPublicEndpoint and WithPublicEndpointFn Mar 9, 2023
@dmathieu
Copy link
Member

Thank you! ❤️
Could you add tests for the new method?

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
@frzifus frzifus force-pushed the otelrestful_support_with_public_endpoint branch from 9f6ea3f to d65f28e Compare March 10, 2023 12:30
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
@frzifus frzifus force-pushed the otelrestful_support_with_public_endpoint branch from d65f28e to 18a53e6 Compare March 10, 2023 12:35
@frzifus
Copy link
Member Author

frzifus commented Mar 10, 2023

done @dmathieu. Could have please have a look again? :)

@frzifus
Copy link
Member Author

frzifus commented Mar 17, 2023

Is there something missing? :)

@dmathieu
Copy link
Member

Only maintainers can merge PRs.

frzifus and others added 2 commits March 17, 2023 20:41
…fig.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
@frzifus frzifus requested a review from MrAlias March 17, 2023 19:41
@MrAlias MrAlias merged commit 6b0728c into open-telemetry:main Mar 17, 2023
@frzifus frzifus deleted the otelrestful_support_with_public_endpoint branch March 17, 2023 20:16
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.

otelrestful: support WithPublicEndpoint
4 participants