File tree 1 file changed +6
-2
lines changed
src/includes/getting-started-config 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ Once this is done, Sentry's Node SDK captures all transactions and unhandled exc
4
4
import * as Sentry from " @sentry/node" ;
5
5
6
6
// Importing @sentry/tracing patches the global hub for tracing to work.
7
- import * as Tracing from " @sentry/tracing" ;
7
+ import " @sentry/tracing" ;
8
+
9
+ // If you want to use `@sentry/tracing` in your project directly, use a named import instead:
10
+ // import * as SentryTracing from "@sentry/tracing"
11
+ // Unused named imports are not guaranteed to patch the global hub.
8
12
9
13
Sentry .init ({
10
14
dsn: " ___PUBLIC_DSN___" ,
@@ -19,7 +23,7 @@ Sentry.init({
19
23
const Sentry = require (" @sentry/node" );
20
24
21
25
// Importing @sentry/tracing patches the global hub for tracing to work.
22
- const Tracing = require (" @sentry/tracing" );
26
+ const SentryTracing = require (" @sentry/tracing" );
23
27
24
28
Sentry .init ({
25
29
dsn: " ___PUBLIC_DSN___" ,
You can’t perform that action at this time.
0 commit comments