Skip to content

fix(metrics): apply default view when no user view matches - #54

Closed
xavierroma wants to merge 1 commit into
open-telemetry:mainfrom
xavierroma:fix/default-view-fallback
Closed

xavierroma wants to merge 1 commit into
open-telemetry:mainfrom
xavierroma:fix/default-view-fallback

Conversation

@xavierroma

Copy link
Copy Markdown

Bug:
ViewRegistry.findViews never consulted instrumentDefaultRegisteredView, so with no user registered views every record silently dispatched to zero storages and nothing was exported.

Fix:
Fall back to the per instrument default view when no user view matches.

Metrics SDK – Measurement processing: If the MeterProvider has no View registered, take the Instrument and apply the default Aggregation on the basis of instrument kind according ...

@linux-foundation-easycla

linux-foundation-easycla Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: xavierroma / name: xavi (bb12377)

@codecov

codecov Bot commented Apr 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@434a566). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #54   +/-   ##
=======================================
  Coverage        ?   69.20%           
=======================================
  Files           ?      231           
  Lines           ?     8059           
  Branches        ?        0           
=======================================
  Hits            ?     5577           
  Misses          ?     2482           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 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.

@xavierroma

Copy link
Copy Markdown
Author

@nachoBonafonte anything I can help with to get this merged?

@nachoBonafonte

Copy link
Copy Markdown
Member

The approach is being evaluated, we are not sure this is what the spec expects.

@bryce-b

bryce-b commented May 20, 2026

Copy link
Copy Markdown
Member

This looks good to me

@bryce-b

bryce-b commented May 20, 2026

Copy link
Copy Markdown
Member

@xavierroma can you rebase main; I believe recent dependency updates will with the build failures.

@bryce-b
bryce-b marked this pull request as draft May 21, 2026 16:38
@bryce-b
bryce-b marked this pull request as ready for review May 21, 2026 16:38
@bryce-b
bryce-b enabled auto-merge (squash) June 4, 2026 16:15
@bryce-b
bryce-b marked this pull request as draft June 4, 2026 16:15
auto-merge was automatically disabled June 4, 2026 16:15

Pull request was converted to draft

@bryce-b
bryce-b marked this pull request as ready for review June 4, 2026 16:16
@bryce-b

bryce-b commented Jun 4, 2026

Copy link
Copy Markdown
Member

@xavierroma we'd like to merge this but this pr requires a rebase to rebuild the build checks.

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