Repository navigation
fix(v10/opentelemetry): Accept @opentelemetry/api 1.10 Attributes in wrapSamplingDecision
#25633
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
Closed
+27
−6
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
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.
this is weird, can we avoid this. either we bump the installed version locally (while keeping the version as ^1.9.0) or something else, if 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.
Tried the lockfile route: resolving the monorepo's
@opentelemetry/api@^1.9.xto 1.10.0 (ranges unchanged) and dropping this override. It's not a drop-in on v10: 1.10 widensAttributes/AnyValueand the SDK's ownbuild:typesstarts failing, e.g.@sentry/opentelemetry:mapStatus.ts,parseSpanDescription.ts(Attributes→SpanAttributes),spanExporter.ts(TimedEvent[],Link[]→SpanLink[])@sentry/deno/@sentry/cloudflare:opentelemetry/tracer.ts(StartSpanOptions)So bumping locally means a type migration across several packages on v10, which feels out of scope for unblocking CI (and the OTel 2.x SDK packages still declare
@opentelemetry/api <1.10.0as peer).Alternative that avoids the runner magic: drop the override here and instead pin
'@opentelemetry/api': '~1.9.0'explicitly in the Vercel AI v6 tests'additionalDependencies, scoped to the only suites affected (ai@6is the only additionalDependency pulling its own copy;ai@7has none). Happy to go with either that or the full 1.10 migration — which do you prefer?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.
Do we still need this now that we bumped the
node-otel-without-tracingapp to ^1.10.0?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.
Yes, they're independent:
node-otel-without-tracingis an E2E app. It has its own pnpm install with the packed tarballs, so bumping its range only affects that app.@opentelemetry/api@1.9.1. Only theai@6tmp install pulls in 1.10.0 here, and that bump doesn't change it.Locally,
span-streaming-v6fails 6/6 without this change (themainspan container has no AI spans) and passes 6/6 with it.The open question is still mydea's, above: keep this generic pin, or replace it with an explicit
'@opentelemetry/api': '~1.9.0'in the Vercel AI v6 tests'additionalDependencies. Bumping the monorepo to 1.10 instead would also break the SDK'sbuild:types.