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

Support metric.metadata in pdata/pmetric #10006

Merged
merged 1 commit into from Apr 19, 2024

Conversation

dashpole
Copy link
Contributor

Description

After #9985, add support for the new metric.metadata field in the pmetric package.

I plan to use the metric.metadata field to support additional prometheus types per https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/prometheus_and_openmetrics.md#metric-metadata

@dashpole dashpole requested a review from a team as a code owner April 19, 2024 18:50
@dashpole dashpole requested a review from Aneurysm9 April 19, 2024 18:50
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.67%. Comparing base (7b046d9) to head (ad8c665).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10006      +/-   ##
==========================================
+ Coverage   91.65%   91.67%   +0.01%     
==========================================
  Files         360      360              
  Lines       16639    16642       +3     
==========================================
+ Hits        15251    15256       +5     
+ Misses       1053     1052       -1     
+ Partials      335      334       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeboten codeboten merged commit cb0637f into open-telemetry:main Apr 19, 2024
48 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 19, 2024
@dashpole dashpole deleted the metric_metadata branch April 23, 2024 18:23
codeboten pushed a commit that referenced this pull request Apr 26, 2024
Follow-up to
#10006,
which added metric.metadata to pmetric.

I forgot to add support for parsing the field from JSON in that PR. This
PR adds the missing support.

#### Testing

Unit tests
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.

None yet

2 participants