File tree Expand file tree Collapse file tree 7 files changed +486
-81
lines changed Expand file tree Collapse file tree 7 files changed +486
-81
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ const nextConfig = {
12
12
output : 'standalone' ,
13
13
transpilePackages : INTERNAL_PACKAGES ,
14
14
serverExternalPackages : [
15
- '@latitude-data/sdk' ,
16
15
'@latitude-data/compiler' ,
16
+ '@latitude-data/sdk' ,
17
+ '@napi-rs/canvas' ,
17
18
'@sentry/nextjs' ,
19
+ '@sentry/profiling-node' ,
20
+ '@sentry/utils' ,
18
21
'bullmq' ,
19
22
'jose' ,
20
23
'nodemailer-mailgun-transport' ,
21
- '@napi-rs/canvas' ,
22
24
'pdfjs-dist' ,
23
25
'promptl-ai' ,
24
26
] ,
Original file line number Diff line number Diff line change 28
28
"@monaco-editor/react" : " ^4.6.0" ,
29
29
"@napi-rs/canvas" : " ^0.1.65" ,
30
30
"@sentry/nextjs" : " ^8.34.0" ,
31
+ "@sentry/profiling-node" : " ^9.8.0" ,
31
32
"@sentry/utils" : " ^8.30.0" ,
32
33
"@sindresorhus/slugify" : " ^2.2.1" ,
33
34
"@t3-oss/env-nextjs" : " ^0.10.1" ,
Original file line number Diff line number Diff line change 5
5
import * as Sentry from '@sentry/nextjs'
6
6
7
7
Sentry . init ( {
8
- // TODO: This should be the process.env.SENTRY_WEB_DSN env var
9
- dsn : 'https://6e31ecebeab94c81ef6be3b0b8ab5773@o1153048.ingest.us.sentry.io/4507922531418112' ,
8
+ dsn : process . env . SENTRY_WEB_DSN ,
10
9
11
10
// Add optional integrations for additional features
12
11
integrations : [ Sentry . replayIntegration ( ) ] ,
Original file line number Diff line number Diff line change 4
4
5
5
import { env } from '@latitude-data/env'
6
6
import * as Sentry from '@sentry/nextjs'
7
+ import { nodeProfilingIntegration } from '@sentry/profiling-node'
7
8
8
9
Sentry . init ( {
9
10
dsn : env . SENTRY_WEB_DSN ,
10
11
enabled : ! ! env . SENTRY_WEB_DSN ,
11
12
13
+ integrations : [ nodeProfilingIntegration ] ,
14
+ tracesSampleRate : 1.0 ,
15
+ profilesSampleRate : 1.0 ,
16
+
12
17
// Setting this option to true will print useful information to the console while you're setting up Sentry.
13
18
debug : false ,
14
19
} )
Original file line number Diff line number Diff line change 20
20
"@latitude-data/env" : " workspace:^" ,
21
21
"@sentry/cli" : " ^2.37.0" ,
22
22
"@sentry/node" : " ^8.30.0" ,
23
+ "@sentry/profiling-node" : " ^9.8.0" ,
23
24
"@t3-oss/env-core" : " *" ,
24
25
"@tavily/core" : " ^0.3.1" ,
25
26
"dd-trace" : " ^5.37.1" ,
Original file line number Diff line number Diff line change 1
- import { env } from '@latitude-data/env'
2
1
import * as Sentry from '@sentry/node'
2
+ import { env } from '@latitude-data/env'
3
+ import { nodeProfilingIntegration } from '@sentry/profiling-node'
3
4
4
5
if ( env . SENTRY_WORKERS_DSN ) {
5
6
Sentry . init ( {
6
7
dsn : env . SENTRY_WORKERS_DSN ,
7
-
8
8
enabled : ! ! env . SENTRY_WORKERS_DSN ,
9
+ integrations : [ nodeProfilingIntegration ] ,
10
+ tracesSampleRate : 1.0 ,
11
+ profilesSampleRate : 1.0 ,
12
+
13
+ environment : env . NODE_ENV ,
9
14
} )
10
15
}
11
16
You can’t perform that action at this time.
0 commit comments