Skip to content

Conversation

@jaydeluca
Copy link
Member

Fixes #7522

Makes OtlpMetricExporterProvider implement AutoConfigureListener like the other exporter providers, and calls builder.setMeterProvider(meterProviderRef::get) when configuring the builder.

@jaydeluca jaydeluca requested a review from a team as a code owner August 7, 2025 21:09
@jaydeluca jaydeluca marked this pull request as draft August 7, 2025 21:17
@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.01%. Comparing base (613e5d6) to head (c986681).
⚠️ Report is 84 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@ ## main #7541 +/- ## ========================================= Coverage 90.01% 90.01% - Complexity 7080 7092 +12  ========================================= Files 803 803 Lines 21417 21450 +33 Branches 2086 2092 +6 ========================================= + Hits 19278 19309 +31  Misses 1477 1477 - Partials 662 664 +2 

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@jaydeluca jaydeluca marked this pull request as ready for review August 7, 2025 21:36
config, builder::setAggregationTemporalitySelector);
ExporterBuilderUtil.configureOtlpHistogramDefaultAggregation(
config, builder::setDefaultAggregationSelector);
builder.setMeterProvider(meterProviderRef::get);
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like it would be good to make sure we have tests that cover this particular line. The test addition doesn't seem to verify that we're actually doing this very important step.

Copy link
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

thanks!

@jkwatson jkwatson merged commit b6200c1 into open-telemetry:main Sep 11, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants