Title: `@apm-js-collab` is included in the `@sentry/nextjs` bundle when Pino integration is not enabled · Issue #18199 · getsentry/sentry-javascript · GitHub
Open Graph Title: `@apm-js-collab` is included in the `@sentry/nextjs` bundle when Pino integration is not enabled · Issue #18199 · getsentry/sentry-javascript
X Title: `@apm-js-collab` is included in the `@sentry/nextjs` bundle when Pino integration is not enabled · Issue #18199 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18199
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@apm-js-collab` is included in the `@sentry/nextjs` bundle when Pino integration is not enabled","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n10.25.0\n\n### Framework Version\n\nNext 15.5.6 & React 19.2.0\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n`next.config.ts`:\n\n```ts\nconst nextConfig: NextConfig = {\n webpack(config, { webpack }) {\n // Configuration for Sentry tree-shaking\n config.plugins.push(\n new webpack.DefinePlugin({\n __SENTRY_DEBUG__: false,\n __SENTRY_TRACING__: false,\n __RRWEB_EXCLUDE_IFRAME__: true,\n __RRWEB_EXCLUDE_SHADOW_DOM__: true,\n __SENTRY_EXCLUDE_REPLAY_WORKER__: true,\n }),\n );\n\n return config;\n },\n}\n\nconst bundledNextConfig = bundleAnalyzer(nextConfig);\n\nexport default withSentryConfig(bundledNextConfig, {\n disableLogger: true,\n project: process.env.NEXT_PUBLIC_SENTRY_PROJECT,\n silent: !process.env.CI,\n});\n```\n\n`sentry.edge.config.ts`\n\n```ts\nimport * as Sentry from \"@sentry/nextjs\";\n\nSentry.init({\n debug: false,\n dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,\n sendDefaultPii: true,\n tracesSampleRate: 1.0,\n});\n```\n\n`sentry.server.config.ts`\n\n```ts\nimport * as Sentry from \"@sentry/nextjs\";\n\nSentry.init({\n debug: false,\n dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,\n sendDefaultPii: true,\n tracesSampleRate: 1.0,\n});\n```\n\n`src/instrumentation.ts`\n\n```ts\nimport * as Sentry from \"@sentry/nextjs\";\n\nexport async function register() {\n if (process.env.NEXT_RUNTIME === \"nodejs\") {\n await import(\"../sentry.server.config\");\n }\n\n if (process.env.NEXT_RUNTIME === \"edge\") {\n await import(\"../sentry.edge.config\");\n }\n}\n\nexport const onRequestError = Sentry.captureRequestError;\n```\n\n`src/app/global-error.tsx`\n\n```tsx\n\"use client\";\n\nimport * as Sentry from \"@sentry/nextjs\";\nimport NextError from \"next/error\";\nimport { useEffect } from \"react\";\n\nexport default function GlobalError({\n error,\n}: {\n error: Error & { digest?: string };\n}) {\n useEffect(() => {\n Sentry.captureException(error);\n }, [error]);\n\n return (\n \u003chtml lang=\"en\">\n \u003cbody>\n {/* `NextError` is the default Next.js error page component. Its type\n definition requires a `statusCode` prop. However, since the App Router\n does not expose status codes for errors, we simply pass 0 to render a\n generic error message. */}\n \u003cNextError statusCode={0} />\n \u003c/body>\n \u003c/html>\n );\n}\n```\n\n`src/app/layout.tsx`\n\n```tsx\nimport * as Sentry from \"@sentry/nextjs\";\n\nexport function generateMetadata(): Metadata {\n return {\n other: {\n ...Sentry.getTraceData(),\n },\n };\n}\n\n// Layout function...\n```\n\n### Steps to Reproduce\n\n1. Create a Next project using `@sentry/nextjs` `10.12.0`\n2. Run `ANALYZE=true npm run build`\n3. Update `@sentry/nextjs` to `10.25.0`\n4. Run `ANALYZE=true npm run build`\n\n### Expected Result\n\nBundle size should match or be similar to bundle size prior to updating.\n\n### Actual Result\n\nBundle size has increased, and includes `@apm-js-collab`, despite the Pino integration not being used. \n\n\u003cimg width=\"1728\" height=\"1016\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/207c7d48-5a10-4819-8b11-f2a99c5643aa\" />\n\n\u003cimg width=\"1728\" height=\"1016\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e2638441-de3d-4215-8ed3-1558053edc00\" />\n\n### Additional Context\n\n\u003csub>Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/jordanthornquest","@type":"Person","name":"jordanthornquest"},"datePublished":"2025-11-13T16:56:46Z","url":"https://github.com/getsentry/sentry-javascript/issues/18199"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0f753f80-f5f9-636f-71e3-bb227739ae14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD66:3E863D:12568A:190F53:6B04B1B7 |
| html-safe-nonce | 15499304afaeb46c2d03f729d1b58167a666e979733ecc565adb668ae8f8ce85 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDY2OjNFODYzRDoxMjU2OEE6MTkwRjUzOjZCMDRCMUI3IiwidmlzaXRvcl9pZCI6IjYyNzMwMzc0NDI1Njg0NjY4NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 091ec603593832f94a349d0659313a91e99237c0ee10d6442f8849ee089a6426 |
| hovercard-subject-tag | issue:3622023797 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/18199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6998e5bc451d5bec17da22fd516f23db836380e0a06a41559b3e708f45eefc5b/getsentry/sentry-javascript/issues/18199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6998e5bc451d5bec17da22fd516f23db836380e0a06a41559b3e708f45eefc5b/getsentry/sentry-javascript/issues/18199 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jordanthornquest |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width