-
Notifications
You must be signed in to change notification settings - Fork 774
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
Prometheus Exporter - New .MapPrometheusScrapingEndpoint() Extension Method #3295
Prometheus Exporter - New .MapPrometheusScrapingEndpoint() Extension Method #3295
Conversation
src/OpenTelemetry.Exporter.Prometheus/PrometheusExporterEndpointRouteBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.Prometheus/PrometheusExporterEndpointRouteBuilderExtensions.cs
Show resolved
Hide resolved
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.
LGTM
@tillig If you have time would you mind also doing a review of this? |
Codecov Report
@@ Coverage Diff @@
## main #3295 +/- ##
=======================================
Coverage ? 85.72%
=======================================
Files ? 267
Lines ? 9383
Branches ? 0
=======================================
Hits ? 8044
Misses ? 1339
Partials ? 0
|
src/OpenTelemetry.Exporter.Prometheus/PrometheusExporterEndpointRouteBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
Just one comment about where services get resolved from, otherwise LGTM. |
@hannahchan could you fix the conflicts? |
@cijothomas Yep done. Please let me know if you need anything else. |
Hi all, The build failed and I think I've just fixed the issues I had with Side note, the code fixes for |
Fixes #3267
Changes
Adds a new extension method
MapPrometheusScrapingEndpoint()
that extends offIEndpointRouteBuilder
instead ofIApplicationBuilder
and returns anIEndpointConventionBuilder
for chaining.Please squash merge.