chore(deps): bump @opentelemetry deps to v2.x#4933
Open
JoshElias wants to merge 3 commits intoelastic:mainfrom
Open
chore(deps): bump @opentelemetry deps to v2.x#4933JoshElias wants to merge 3 commits intoelastic:mainfrom
JoshElias wants to merge 3 commits intoelastic:mainfrom
Conversation
- Update @opentelemetry/core to ^2.0.0 - Update @opentelemetry/sdk-metrics to ^2.0.0
|
💚 CLA has been signed |
🤖 GitHub commentsJust comment with:
|
🔍 Preview links for changed docs |
Author
I have since signed this. |
Author
|
Happy to make any required changes to fit your standards! |
Author
|
I just noticed that my auto formatter was a bit aggressive in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update OpenTelemetry dependencies to v2.x and adapt code to the breaking API changes.
Summary
@opentelemetry/sdk-metricsfrom v1.x to v2.x@opentelemetry/coreto v2.xAggregationOptionAPIMeterProvider.addMetricReader()with constructor-based reader registrationBreaking Changes in OTel v2.x Addressed
MeterProvider.addMetricReader()removed - Now pass readers via constructor optionsSumAggregation,LastValueAggregation, etc.) - Now use object-based{ type: AggregationType.SUM }format^18.19.0 || >=20.6.0in OTel SDKChecklist
- [ ] Add tests- [ ] Update TypeScript typings- [ ] Add release notes todocs/release-notes/index.md