Skip to content

feat: support OpenTelemetry in loadable sub-commands#28272

Merged
aqrln merged 1 commit intomainfrom
push-mutkvzyounzm
Oct 10, 2025
Merged

feat: support OpenTelemetry in loadable sub-commands#28272
aqrln merged 1 commit intomainfrom
push-mutkvzyounzm

Conversation

@aqrln
Copy link
Copy Markdown
Member

@aqrln aqrln commented Oct 10, 2025

Initialize the OpenTelemetry SDK in the CLI entrypoint to make it usable in loadable sub-commands. Since they are libraries, they should not be initiaizing the SDK, it should be done by the application (the CLI).

Part of https://linear.app/prisma-company/issue/TML-1317/add-qc-support-in-local-ppg-with-accelerate-api

@aqrln aqrln added this to the 6.18.0 milestone Oct 10, 2025
Copilot AI review requested due to automatic review settings October 10, 2025 11:26

This comment was marked as outdated.

@aqrln aqrln changed the base branch from main to push-pvkqkltonwlz October 10, 2025 11:27
@aqrln aqrln requested a review from Copilot October 10, 2025 11:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 10, 2025

size-limit report 📦

Path Size
packages/client/runtime/library.js 197.77 KB (0%)
packages/client/runtime/library.d.ts 126.71 KB (0%)
packages/client/runtime/binary.js 658.34 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 166.66 KB (0%)
packages/client/runtime/edge-esm.js 166.12 KB (0%)
packages/client/runtime/wasm-engine-edge.js 128.78 KB (0%)
packages/client/runtime/index-browser.js 34.5 KB (0%)
packages/client/runtime/index-browser.d.ts 11.64 KB (0%)
packages/cli/build/index.js 2.68 MB (+1.66% 🔺)
packages/client/prisma-client-0.0.0.tgz 25.93 MB (+0.01% 🔺)
packages/cli/prisma-0.0.0.tgz 16.74 MB (+0.07% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 924.95 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 999.02 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 998.21 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 941.41 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 906.81 KB (0%)

@aqrln aqrln force-pushed the push-mutkvzyounzm branch from e37d45a to 78c2553 Compare October 10, 2025 12:11
@aqrln aqrln force-pushed the push-pvkqkltonwlz branch from 7f1c927 to 30ce209 Compare October 10, 2025 12:11
jacek-prisma
jacek-prisma previously approved these changes Oct 10, 2025
Base automatically changed from push-pvkqkltonwlz to main October 10, 2025 13:34
@aqrln aqrln dismissed jacek-prisma’s stale review October 10, 2025 13:34

The base branch was changed.

Initialize the OpenTelemetry SDK in the CLI entrypoint to make it usable
in loadable sub-commands. Since they are libraries, they should not be
initiaizing the SDK, it should be done by the application (the CLI).

Part of https://linear.app/prisma-company/issue/TML-1317/add-qc-support-in-local-ppg-with-accelerate-api
@aqrln aqrln force-pushed the push-mutkvzyounzm branch from 78c2553 to fc0616f Compare October 10, 2025 13:35
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 10, 2025

Client memory tests, node 24, library:

✅ Success

@aqrln aqrln merged commit 6960355 into main Oct 10, 2025
811 of 814 checks passed
@aqrln aqrln deleted the push-mutkvzyounzm branch October 10, 2025 15:12
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)**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants