Skip to content

Add Prometheus Collector - PrometheusCollector header and source files#261

Closed
erichsueh3 wants to merge 3 commits into
open-telemetry:masterfrom
erichsueh3:prom_collector_implementation
Closed

Add Prometheus Collector - PrometheusCollector header and source files#261
erichsueh3 wants to merge 3 commits into
open-telemetry:masterfrom
erichsueh3:prom_collector_implementation

Conversation

@erichsueh3
Copy link
Copy Markdown
Contributor

This PR implements the PrometheusCollector class and its header and source files. Test files will be added in another PR. This class is derived from the Collectable class in the C++ Prometheus client and allows for data translated from OpenTelemetry for Prometheus to be collected by an end user.

This PR is one in a series of PRs that aims to add a full implementation of a Prometheus Exporter within the OpenTelemetry C++ library.

Note to reviewers: Please keep in mind that this PR is dependent on the Prometheus Exporter Utils PRs(#245 and #250) so codecov tests may not fully pass.

@erichsueh3 erichsueh3 requested a review from a team August 7, 2020 01:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 7, 2020

Codecov Report

Merging #261 into master will decrease coverage by 0.82%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #261      +/-   ##
==========================================
- Coverage   93.29%   92.47%   -0.83%     
==========================================
  Files          66      142      +76     
  Lines        1656     6204    +4548     
==========================================
+ Hits         1545     5737    +4192     
- Misses        111      467     +356     
Impacted Files Coverage Δ
api/test/trace/noop_test.cc 100.00% <0.00%> (ø)
sdk/test/trace/span_data_test.cc 100.00% <0.00%> (ø)
api/test/nostd/unique_ptr_test.cc 100.00% <0.00%> (ø)
api/test/nostd/string_view_test.cc 100.00% <0.00%> (ø)
api/test/plugin/dynamic_load_test.cc 100.00% <0.00%> (ø)
api/include/opentelemetry/trace/span.h 100.00% <0.00%> (ø)
sdk/test/trace/tracer_provider_test.cc 100.00% <0.00%> (ø)
sdk/test/trace/simple_processor_test.cc 100.00% <0.00%> (ø)
api/include/opentelemetry/trace/tracer.h 100.00% <0.00%> (ø)
sdk/include/opentelemetry/sdk/trace/tracer.h 100.00% <0.00%> (ø)
... and 94 more

@erichsueh3 erichsueh3 marked this pull request as draft August 18, 2020 01:07
@erichsueh3 erichsueh3 closed this Aug 18, 2020
GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Jun 17, 2025
…wnload-artifact-4.x

chore(deps): update actions/download-artifact action to v4.3.0
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.

1 participant