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

[NFC] Improve scope/instrument names in metrics ostream exporter #1544

Merged

Conversation

bsarden
Copy link
Contributor

@bsarden bsarden commented Aug 6, 2022

Previously, we were overloading the name key in the metrics ostream
exporter. This patch qualifies the name key with the appropriate prefix
based on the structures they represent.

Previously, we were overloading the `name` key in the metrics ostream
exporter. This patch qualifies the `name` key with the appropriate prefix
based on the structures they represent.
@bsarden bsarden requested a review from a team August 6, 2022 20:00
@codecov
Copy link

codecov bot commented Aug 6, 2022

Codecov Report

Merging #1544 (0170a63) into main (b4ed047) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1544   +/-   ##
=======================================
  Coverage   83.93%   83.93%           
=======================================
  Files         156      156           
  Lines        4908     4908           
=======================================
  Hits         4119     4119           
  Misses        789      789           
Impacted Files Coverage Δ
exporters/ostream/test/ostream_metric_test.cc 100.00% <ø> (ø)
exporters/ostream/src/metric_exporter.cc 92.13% <100.00%> (ø)

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the changes.

@lalitb lalitb merged commit 86c9f2b into open-telemetry:main Aug 11, 2022
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 2022
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.

2 participants