Skip to content

fix(instrumentation): make @opentelemetry/api as external#28820

Merged
aqrln merged 1 commit intomainfrom
aqrln-kuwxlzlwsllu
Dec 3, 2025
Merged

fix(instrumentation): make @opentelemetry/api as external#28820
aqrln merged 1 commit intomainfrom
aqrln-kuwxlzlwsllu

Conversation

@aqrln
Copy link
Copy Markdown
Member

@aqrln aqrln commented Dec 2, 2025

This package is specified as a peer dependency and should not be bundled (otherwise users end up with two copies of this package in their application).

This package is specified as a peer dependency and should not be
bundled (otherwise users end up with two copies of this package in their
application).
@aqrln aqrln added this to the 7.1.0 milestone Dec 2, 2025
Copilot AI review requested due to automatic review settings December 2, 2025 23:29
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

This PR prevents the @opentelemetry/api package from being bundled in the instrumentation package by adding it to the external dependencies list in the build configuration. Since @opentelemetry/api is declared as a peer dependency, bundling it would result in users having duplicate copies of the package in their applications.

  • Added @opentelemetry/api to the external dependencies array in the esbuild configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 2, 2025

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.23 KB (0%)
packages/client/runtime/index-browser.d.ts 3.28 KB (0%)
packages/cli/build/index.js 2.51 MB (0%)
packages/client/prisma-client-0.0.0.tgz 10.23 MB (+0.01% 🔺)
packages/cli/prisma-0.0.0.tgz 6.71 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 805.59 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 859.27 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 852.2 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 804.98 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 788.47 KB (0%)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 2, 2025

Client memory tests, node 24, client:
✅ Success

@aqrln aqrln merged commit 10bd665 into main Dec 3, 2025
504 of 509 checks passed
@aqrln aqrln deleted the aqrln-kuwxlzlwsllu branch December 3, 2025 11:23
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