From 8d92a6a503156282a422f4595079ccf74135d299 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 21 Jan 2025 17:29:10 +0100 Subject: [PATCH 1/2] meta: Update Changelog for 8.50.1 --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09eea57101f7..022780a60eb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,17 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +## 8.51.0 + +- feat(v8/browser): Add `multiplexedtransport.js` CDN bundle (#15043) (#15046) +- feat(v8/browser): Add Unleash integration (#14948) +- feat(v8/deno): Deprecate Deno SDK as published on deno.land (#15121) +- feat(v8/node): Add `prismaInstrumentation` option to Prisma integration as escape hatch for all Prisma versions (#15128) +- feat(v8/sveltekit): Deprecate `fetchProxyScriptNonce` option (#15011) +- fix(v8/aws-lambda): Avoid overwriting root span name (#15054) +- fix(v8/core): `fatal` events should set session as crashed (#15073) +- fix(v8/node/nestjs): Use method on current fastify request (#15104) + ## 8.50.0 - feat(v8/react): Add support for React Router `createMemoryRouter` ([#14985](https://github.com/getsentry/sentry-javascript/pull/14985)) From fc5ba30780b5b21ab06cb259675a72a799315b35 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 22 Jan 2025 13:18:59 +0000 Subject: [PATCH 2/2] Add prisma instructions --- CHANGELOG.md | 48 +++++++++++++++---- .../node/src/integrations/tracing/prisma.ts | 2 +- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 022780a60eb3..3cf42845dbbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,14 +12,44 @@ ## 8.51.0 -- feat(v8/browser): Add `multiplexedtransport.js` CDN bundle (#15043) (#15046) -- feat(v8/browser): Add Unleash integration (#14948) -- feat(v8/deno): Deprecate Deno SDK as published on deno.land (#15121) -- feat(v8/node): Add `prismaInstrumentation` option to Prisma integration as escape hatch for all Prisma versions (#15128) -- feat(v8/sveltekit): Deprecate `fetchProxyScriptNonce` option (#15011) -- fix(v8/aws-lambda): Avoid overwriting root span name (#15054) -- fix(v8/core): `fatal` events should set session as crashed (#15073) -- fix(v8/node/nestjs): Use method on current fastify request (#15104) +### Important Changes + +- **feat(v8/node): Add `prismaInstrumentation` option to Prisma integration as escape hatch for all Prisma versions ([#15128](https://github.com/getsentry/sentry-javascript/pull/15128))** + + This release adds a compatibility API to add support for Prisma version 6. + To capture performance data for Prisma version 6: + + 1. Install the `@prisma/instrumentation` package on version 6. + 1. Pass a `new PrismaInstrumentation()` instance as exported from `@prisma/instrumentation` to the `prismaInstrumentation` option: + + ```js + import { PrismaInstrumentation } from '@prisma/instrumentation'; + + Sentry.init({ + integrations: [ + prismaIntegration({ + // Override the default instrumentation that Sentry uses + prismaInstrumentation: new PrismaInstrumentation(), + }), + ], + }); + ``` + + The passed instrumentation instance will override the default instrumentation instance the integration would use, while the `prismaIntegration` will still ensure data compatibility for the various Prisma versions. + + 1. Remove the `previewFeatures = ["tracing"]` option from the client generator block of your Prisma schema. + +### Other Changes + +- feat(v8/browser): Add `multiplexedtransport.js` CDN bundle ([#15046](https://github.com/getsentry/sentry-javascript/pull/15046)) +- feat(v8/browser): Add Unleash integration ([#14948](https://github.com/getsentry/sentry-javascript/pull/14948)) +- feat(v8/deno): Deprecate Deno SDK as published on deno.land ([#15121](https://github.com/getsentry/sentry-javascript/pull/15121)) +- feat(v8/sveltekit): Deprecate `fetchProxyScriptNonce` option ([#15011](https://github.com/getsentry/sentry-javascript/pull/15011)) +- fix(v8/aws-lambda): Avoid overwriting root span name ([#15054](https://github.com/getsentry/sentry-javascript/pull/15054)) +- fix(v8/core): `fatal` events should set session as crashed ([#15073](https://github.com/getsentry/sentry-javascript/pull/15073)) +- fix(v8/node/nestjs): Use method on current fastify request ([#15104](https://github.com/getsentry/sentry-javascript/pull/15104)) + +Work in this release was contributed by @tjhiggins, and @nwalters512. Thank you for your contributions! ## 8.50.0 @@ -35,7 +65,7 @@ - fix(v8/sveltekit): Ensure source maps deletion is called after source ma… ([#14963](https://github.com/getsentry/sentry-javascript/pull/14963)) - fix(v8/vue): Re-throw error when no errorHandler exists ([#14943](https://github.com/getsentry/sentry-javascript/pull/14943)) -Work in this release was contributed by @HHK1 and @mstrokin. Thank you for your contribution! +Work in this release was contributed by @HHK1 and @mstrokin. Thank you for your contributions! ## 8.48.0 diff --git a/packages/node/src/integrations/tracing/prisma.ts b/packages/node/src/integrations/tracing/prisma.ts index 33a51384f0ce..16d715f42c23 100644 --- a/packages/node/src/integrations/tracing/prisma.ts +++ b/packages/node/src/integrations/tracing/prisma.ts @@ -27,7 +27,7 @@ export const instrumentPrisma = generateInstrumentOnce<{ prismaInstrumentation?: * Adds Sentry tracing instrumentation for the [Prisma](https://www.npmjs.com/package/prisma) ORM. * For more information, see the [`prismaIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/prisma/). * - * Make sure `previewFeatures = ["tracing"]` is added to the generator block in of your Prisma schema. + * Make sure `previewFeatures = ["tracing"]` is added to the generator block in your Prisma schema. * * ```prisma * generator client {