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

Add WithProducer to the prometheus exporter #4473

Merged
merged 2 commits into from Aug 31, 2023

Conversation

dashpole
Copy link
Contributor

Fixes #4471

When we used RegisterProducer, it was possible to call that directly on the manual reader of the prometheus exporter. When we transitioned to WithProducer, that went away. This adds the WithProducer option to the prometheus exporter, and cleans up the unit tests.

@dashpole
Copy link
Contributor Author

@codeboten

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #4473 (173d16c) into main (2d2507d) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #4473     +/-   ##
=======================================
- Coverage   81.3%   81.3%   -0.1%     
=======================================
  Files        220     220             
  Lines      17662   17661      -1     
=======================================
- Hits       14370   14369      -1     
  Misses      2992    2992             
  Partials     300     300             
Files Changed Coverage
exporters/prometheus/config.go 100.0%
exporters/prometheus/exporter.go 100.0%

@dashpole dashpole added pkg:exporter:prometheus Related to the Prometheus exporter package bug Something isn't working labels Aug 29, 2023
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround on this fix @dashpole, much appreciated!

@MrAlias MrAlias merged commit 02616a2 into open-telemetry:main Aug 31, 2023
27 checks passed
@MrAlias MrAlias added this to the v1.18.0/v0.41.0 milestone Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:exporter:prometheus Related to the Prometheus exporter package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Registering an OpenCensus producer for the prometheus exporter
4 participants