File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/lib/server/sentry/utils Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11import { posthog , PostHogSentryIntegration } from '$lib/server/posthog' ;
22import type { Integration } from '@sentry/types' ;
3+ import * as Sentry from '@sentry/sveltekit' ;
4+ import { prisma } from '$lib/server/prisma' ;
35
46export function getServerSentryIntegrations (
57 organization : string | undefined ,
68) : Integration [ ] {
9+ const integrations : Integration [ ] = [
10+ new Sentry . Integrations . Prisma ( { client : prisma } ) ,
11+ ] ;
12+
713 if ( posthog && organization ) {
8- return [ new PostHogSentryIntegration ( posthog , undefined , organization ) ] ;
14+ integrations . unshift (
15+ new PostHogSentryIntegration ( posthog , undefined , organization ) ,
16+ ) ;
917 }
1018
11- return [ ] ;
19+ return integrations ;
1220}
You can’t perform that action at this time.
0 commit comments