Skip to content

Fixing opentelemetry testing utility#362

Merged
axelsrz merged 1 commit intomainfrom
users/robrandao/otel-test-utility
Apr 10, 2026
Merged

Fixing opentelemetry testing utility#362
axelsrz merged 1 commit intomainfrom
users/robrandao/otel-test-utility

Conversation

@rodrigobr-msft
Copy link
Copy Markdown
Contributor

@rodrigobr-msft rodrigobr-msft commented Apr 10, 2026

With an updated version of OTEL, aunit test for the internal DeltaMetricReader fails. This fixes that by reusing one of the utility functions during that test.

Copilot AI review requested due to automatic review settings April 10, 2026 18:09
@rodrigobr-msft rodrigobr-msft marked this pull request as ready for review April 10, 2026 18:09
@rodrigobr-msft rodrigobr-msft requested a review from a team as a code owner April 10, 2026 18:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the DeltaMetricReader unit test to remain compatible with a newer OpenTelemetry metrics data structure by validating output via the shared telemetry helper used throughout the test suite.

Changes:

  • Replace manual resource_metrics/scope_metrics/metrics shape assertions with find_metric(...) usage in the compatibility test.
  • Keep validating the returned Metric and datapoint fields (data_points, value, attributes) expected by the helper utilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@axelsrz axelsrz merged commit faae924 into main Apr 10, 2026
16 checks passed
@axelsrz axelsrz deleted the users/robrandao/otel-test-utility branch April 10, 2026 18:25
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.

3 participants