-
Notifications
You must be signed in to change notification settings - Fork 821
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(sdk-metrics-base): async instruments callback timeout #2742
feat(sdk-metrics-base): async instruments callback timeout #2742
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2742 +/- ##
=======================================
Coverage 92.51% 92.52%
=======================================
Files 183 183
Lines 5959 5980 +21
Branches 1266 1268 +2
=======================================
+ Hits 5513 5533 +20
- Misses 446 447 +1
|
240e96c
to
011e528
Compare
experimental/packages/opentelemetry-sdk-metrics-base/src/state/AsyncMetricStorage.ts
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
This PR is not stale it is just still waiting on a spec clarification which has not yet been closed. |
The spec change has been merged: open-telemetry/opentelemetry-specification#2495. I'm going to pick this up. |
This comment was marked as outdated.
This comment was marked as outdated.
3e7b382
to
56cb7a5
Compare
56cb7a5
to
05b0e6e
Compare
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.
LGTM % small comments
experimental/packages/opentelemetry-sdk-metrics-base/src/export/MetricData.ts
Outdated
Show resolved
Hide resolved
experimental/packages/opentelemetry-sdk-metrics-base/src/state/ObservableRegistry.ts
Outdated
Show resolved
Hide resolved
experimental/packages/opentelemetry-sdk-metrics-base/src/export/MetricData.ts
Outdated
Show resolved
Hide resolved
…meout # Conflicts: # experimental/packages/opentelemetry-sdk-metrics-base/src/state/MeterSharedState.ts # experimental/packages/opentelemetry-sdk-metrics-base/src/state/MetricCollector.ts # experimental/packages/opentelemetry-sdk-metrics-base/test/export/PeriodicExportingMetricReader.test.ts # experimental/packages/opentelemetry-sdk-metrics-base/test/state/MetricCollector.test.ts
…meout-stage # Conflicts: # experimental/CHANGELOG.md # experimental/packages/opentelemetry-sdk-metrics-base/test/util.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.
LGTM. Thanks for the great work! 🙂
Which problem is this PR solving?
Apply timeout option directly to each async instrument callback to gain finer grain control over timeout. With open-telemetry/opentelemetry-specification#2295 being clarified, we can export successfully collected metric data even if a single async instrument callback is timed out.
Type of change
How Has This Been Tested?
Checklist: