mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
**Description:** This PR fixes an issue where the `debug` exporter (with `verbosity: detailed`) would print the Metric Descriptor but omit the `Metadata` field. This ensures that all parts of the Metric data model are visible during debugging. This issue was originally reported in [open-telemetry/opentelemetry-collector-contrib#46540](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/46540). This PR fixes issue: #14667 **Testing:** - [x] Added a new unit test case `metrics_with_metadata` in `metrics_test.go`. - [x] Verified locally that the output now includes the Metadata section as expected. --------- Signed-off-by: 57Ajay <[email protected]> Co-authored-by: Andrzej Stencel <[email protected]>