Repository navigation
Conversation
Pull request dashboard statusWaiting on reviewers · refreshed 2026-12-05 07:10 UTC Review the latest changes. Status above doesn't look right?
|
1c8b5e0 to
5b4722c
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9020 +/- ##
============================================
+ Coverage 90.50% 90.57% +0.07%
- Complexity 11273 11351 +78
============================================
Files 1040 1042 +2
Lines 30762 30976 +214
Branches 4035 4084 +49
============================================
+ Hits 27840 28058 +218
+ Misses 1938 1932 -6
- Partials 984 986 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
5b4722c to
71baf95
Compare
845fbfd to
6d78faf
Compare
f6bd08b to
0dbd6d0
Compare
dashpole
left a comment
There was a problem hiding this comment.
I validated that this properly implements the composable view spec.
This comment has been minimized.
This comment has been minimized.
| } | ||
|
|
||
| @Override | ||
| public final boolean equals(@Nullable Object o) { |
There was a problem hiding this comment.
It seems like it should be possible to avoid the public API change here? Overriding equals and hashCode directly on View triggered the api-change check.
| .containsExactlyInAnyOrder(expectedKeys); | ||
| } | ||
|
|
||
| @Test |
There was a problem hiding this comment.
Non-blocking: ViewRegistryTest does not yet cover COMPOSABLE mode when no views match, when composing Aggregation.drop() with another view, or when falling back to a custom DefaultAggregationSelector or CardinalityLimitSelector.
Implement experimental composable view matching mode according to the OpenTelemetry Metrics SDK specification and declarative config schema. - Introduce ViewMatchingMode (INDEPENDENT, COMPOSABLE). - Track explicit View properties in ViewBuilder, View, and RegisteredView to distinguish configured fields from defaults. - Implement composable view resolution in ViewRegistry: stream grouping by configured name, last-wins attribute/cardinality merging, backward-scanning aggregation compatibility fallback, and attribute filter conjunction. - Add reflection bridge in SdkMeterProviderUtil to safely configure ViewMatchingMode on SdkMeterProviderBuilder without modifying public 1.x APIs. - Wire view_matching_mode/development in MeterProviderFactory for declarative configuration. - Add comprehensive unit and integration tests. Fixes open-telemetry#9013
… remove redundant test
…ompatibility, and test coverage - Keep CompositeAndPredicate package-private with @nullable equals, Objects.hashCode, and toString - Enforce single canonical RegisteredView.create factory after rebase with OptIn/enabled support - Restore apidiffs clean state on opentelemetry-sdk-metrics.txt - Add requested ViewRegistryTest composable edge-case tests, OptInAdviceTest composable test, ViewTest validation coverage, CompositeAndPredicateTest EqualsVerifier, and MeterProviderFactoryTest independent case
ad6265a to
a52c280
Compare
Implement experimental composable view matching mode according to the OpenTelemetry Metrics SDK specification and declarative config schema.
Fixes #9013