chore: upgrade OpenTelemetry deps and refresh tracing setup in client#28268
Merged
chore: upgrade OpenTelemetry deps and refresh tracing setup in client#28268
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades OpenTelemetry dependencies to their latest versions and updates the tracing setup to use the new SDK APIs introduced in @opentelemetry/sdk-trace-base@2.
- Bumps OpenTelemetry packages to newer versions and unifies them through workspace catalog
- Migrates from deprecated APIs to new patterns (Resource constructor → resourceFromAttributes, provider.register() → trace.setGlobalTracerProvider())
- Updates semantic convention imports to use the new ATTR_* naming convention
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Adds new OpenTelemetry package versions to workspace catalog |
| packages/query-plan-executor/package.json | Migrates to use catalog reference for sdk-trace-base |
| packages/instrumentation/README.md | Updates documentation examples to use new OpenTelemetry v2 APIs |
| packages/client/tests/functional/tracing/tests.ts | Migrates test setup to new API patterns and fixes span property access |
| packages/client/tests/functional/tracing-no-sampling/tests.ts | Updates tracing setup with new APIs |
| packages/client/tests/functional/tracing-filtered-spans/tests.ts | Updates tracing setup with new APIs |
| packages/client/tests/functional/tracing-disabled/tests.ts | Updates tracing setup with new APIs |
| packages/client/package.json | Bumps OpenTelemetry dependencies to latest versions |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
aqrln
commented
Oct 9, 2025
aqrln
commented
Oct 9, 2025
Contributor
size-limit report 📦
|
63005f3 to
7f1c927
Compare
- Bump `@opentelemetry/*` packages and unify them using workspace catalog. - Align tracing functional tests with the latest SDK APIs. - Update `@prisma/instrumentation` README examples to match the new configuration patterns in `@opentelemetry/sdk-trace-base@2`.
7f1c927 to
30ce209
Compare
jacek-prisma
approved these changes
Oct 10, 2025
aqrln
added a commit
that referenced
this pull request
Oct 16, 2025
Conflicts in `packages/config` were automatically solved using [Mergiraf](https://mergiraf.org/). Commits: - **fix: fix neon listener leak (#28255)** - **feat(qpe): add an option to disable logging to console (#28253)** - **feat(adapter-mssql): support multiSubnetFailover flag in connection string (#28261)** - **chore: use pnpm catalog (#28236)** - **fix: revert "chore: use pnpm catalog (#28236)" (#28271)** - **chore: upgrade OpenTelemetry deps and refresh tracing setup in client (#28268)** - **chore(deps): update engines to 6.18.0-3.b03d75f1a67e62289420f5697c28a3ff8dbb0424 (#28258)** - **feat(qpe): expose package version as an export (#28275)** - **feat: support OpenTelemetry in loadable sub-commands (#28272)** - **chore(deps): update engines to 6.18.0-6.9bf76dbea6c9e34d59a3577015bd1e94bfda7624 (#28288)** - **fix(adapter-pg): historical dates (#28212)** - **chore(deps): update engines to 6.18.0-7.d3fc122f88ca3ce86f67a797debfb179a39ccf48 (#28293)** - **fix: support multiple Prisma instances with different providers (#28291)** - **feat(config): add support for `engine?: 'js' | 'classic'` (#28266)**
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.
@opentelemetry/*packages.@prisma/instrumentationREADME examples to match the new configuration patterns in@opentelemetry/sdk-trace-base@2.Part of https://linear.app/prisma-company/issue/TML-1317/add-qc-support-in-local-ppg-with-accelerate-api