File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
dev-packages/node-integration-tests/suites/tracing-experimental/prisma-orm
node-experimental/src/integrations/tracing Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Sentry.init({
9
9
release : '1.0' ,
10
10
tracesSampleRate : 1.0 ,
11
11
transport : loggingTransport ,
12
+ integrations : [ Sentry . prismaIntegration ( ) ] ,
12
13
} ) ;
13
14
14
15
// Stop the process from exiting before the transaction is sent
Original file line number Diff line number Diff line change 1
1
import { applySdkMetadata } from '@sentry/core' ;
2
2
import type { NodeOptions } from '@sentry/node' ;
3
- import { getDefaultIntegrations } from '@sentry/node' ;
4
3
import { init as initNodeSdk , setTag } from '@sentry/node' ;
5
4
6
5
/**
@@ -10,9 +9,6 @@ import { init as initNodeSdk, setTag } from '@sentry/node';
10
9
export function init ( options : NodeOptions ) : void {
11
10
const opts = {
12
11
...options ,
13
- // TODO v8: For now, we disable the Prisma integration, because that has weird esm-cjs interop issues
14
- // We should figure these out and fix these before v8 goes stable.
15
- defaultIntegrations : getDefaultIntegrations ( options ) . filter ( integration => integration . name !== 'Prisma' ) ,
16
12
} ;
17
13
applySdkMetadata ( opts , 'astro' , [ 'astro' , 'node' ] ) ;
18
14
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { mysqlIntegration } from './mysql';
11
11
import { mysql2Integration } from './mysql2' ;
12
12
import { nestIntegration } from './nest' ;
13
13
import { postgresIntegration } from './postgres' ;
14
- import { prismaIntegration } from './prisma' ;
15
14
16
15
/**
17
16
* With OTEL, all performance integrations will be added, as OTEL only initializes them when the patched package is actually required.
@@ -26,7 +25,10 @@ export function getAutoPerformanceIntegrations(): Integration[] {
26
25
mysqlIntegration ( ) ,
27
26
mysql2Integration ( ) ,
28
27
postgresIntegration ( ) ,
29
- prismaIntegration ( ) ,
28
+ // For now, we do not include prisma by default because it has ESM issues
29
+ // See https://github.com/prisma/prisma/issues/23410
30
+ // TODO v8: Figure out a better solution for this, maybe only disable in ESM mode?
31
+ // prismaIntegration(),
30
32
nestIntegration ( ) ,
31
33
hapiIntegration ( ) ,
32
34
koaIntegration ( ) ,
You can’t perform that action at this time.
0 commit comments