open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.94k stars 1.32k forks source link

Support parsing metric.metadata from OTLP JSON #10026

Closed dashpole closed 3 weeks ago

dashpole commented 3 weeks ago

Description

Follow-up to https://github.com/open-telemetry/opentelemetry-collector/pull/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

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.56%. Comparing base (326ef7c) to head (c5949c0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10026 +/- ## ======================================= Coverage 91.55% 91.56% ======================================= Files 360 360 Lines 16693 16698 +5 ======================================= + Hits 15284 15289 +5 Misses 1073 1073 Partials 336 336 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.