feat(metrics): prototype experimental advice support#3876
feat(metrics): prototype experimental advice support#3876pichlermarc merged 8 commits intoopen-telemetry:mainfrom
Conversation
181232e to
8b2188e
Compare
Codecov Report
@@ Coverage Diff @@
## main #3876 +/- ##
==========================================
+ Coverage 92.24% 92.53% +0.28%
==========================================
Files 331 317 -14
Lines 9479 8907 -572
Branches 1999 1877 -122
==========================================
- Hits 8744 8242 -502
+ Misses 735 665 -70
|
8b2188e to
d47603f
Compare
|
open-telemetry/opentelemetry-specification#3391 (comment) The advice API needs one more language implementation to be advanced to stable status. @open-telemetry/javascript-approvers would you mind taking a look at this? Thank you! |
dyladan
left a comment
There was a problem hiding this comment.
Seems fine to me. The only real functional change appears to be in Aggregation.ts. Everything else is names/types/organization
|
|
||
| toMetricData( | ||
| descriptor: InstrumentDescriptor, | ||
| descriptor: MetricDescriptor, |
There was a problem hiding this comment.
It is needed to avoid exposing the advice on the InstrumentDescriptor to the MetricReaders and the MetricExporters.
# Conflicts: # CHANGELOG.md # packages/sdk-metrics/src/ObservableResult.ts
pichlermarc
left a comment
There was a problem hiding this comment.
Thanks for working on this 🙂
Added a few comments around documenting stability/understanding precedence for advice in the SDK.
# Conflicts: # CHANGELOG.md # api/CHANGELOG.md # packages/sdk-metrics/src/InstrumentDescriptor.ts
pichlermarc
left a comment
There was a problem hiding this comment.
Thank you for working on this. 🙂
Which problem is this PR solving?
Fixes #3722, #3619
Short description of the changes
MetricDescriptor) and internal interfaceInstrumentDescriptorso that the advice is not exposed to exporters.Type of change
How Has This Been Tested?
createHistogramwith advice and verify the exported boundaries.Checklist: