-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(metrics): prototype experimental advice support #3876
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me. The only real functional change appears to be in Aggregation.ts
. Everything else is names/types/organization
@@ -207,7 +211,7 @@ export class HistogramAggregator implements Aggregator<HistogramAccumulation> { | |||
} | |||
|
|||
toMetricData( | |||
descriptor: InstrumentDescriptor, | |||
descriptor: MetricDescriptor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed to avoid exposing the advice
on the InstrumentDescriptor
to the MetricReader
s and the MetricExporter
s.
# Conflicts: # CHANGELOG.md # packages/sdk-metrics/src/ObservableResult.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this. 🙂
Which problem is this PR solving?
Fixes #3722, #3619
Short description of the changes
MetricDescriptor
) and internal interfaceInstrumentDescriptor
so that the advice is not exposed to exporters.Type of change
How Has This Been Tested?
createHistogram
with advice and verify the exported boundaries.Checklist: