@@ -31,12 +31,12 @@ With [tracing](/product/insights/overview/), Sentry automatically tracks your so
31
31
## Configure
32
32
33
33
<PlatformSection supported = { [" javascript" ]} >
34
- Enable tracing by configuring the sampling rate for transactions . Set the
35
- sample rate for your transactions by either :
34
+ Enable tracing by configuring the sampling rate for traces . Set the sample
35
+ rate as follows :
36
36
</PlatformSection >
37
37
38
38
<PlatformSection notSupported = { [" javascript" ]} >
39
- Enable tracing by setting the sample rate for your transactions .
39
+ Enable tracing by setting the sample rate for your traces .
40
40
</PlatformSection >
41
41
42
42
<PlatformContent includePath = " performance/configure-sample-rate" />
@@ -75,13 +75,36 @@ See <PlatformLink to="/tracing/instrumentation/automatic-instrumentation">Automa
75
75
76
76
You can also manually start spans to instrument specific parts of your code. This is useful when you want to measure the performance of a specific operation or function.
77
77
78
- - <PlatformLink to = " /apis/#tracing" >Tracing APIs</PlatformLink >:
79
- Find information about APIs for custom tracing instrumentation
78
+ - <PlatformLink to = " /apis/#tracing" >Tracing APIs</PlatformLink >: Find
79
+ information about APIs for custom tracing instrumentation
80
80
- <PlatformLink to = " /tracing/instrumentation/" >Instrumentation</PlatformLink >:
81
81
Find information about manual instrumentation with the Sentry SDK
82
82
- <PlatformLink to = " /tracing/span-metrics/" >Sending Span Metrics</PlatformLink >:
83
83
Learn how to capture metrics on your spans
84
84
85
+ ## Disabling Tracing
86
+
87
+ If you want to disable tracing, you _ should not_ set ` tracesSampleRate ` at
88
+ all. Setting it to ` 0 ` will not disable tracing, it will simply never send any
89
+ traces to Sentry.
90
+
91
+ <PlatformSection
92
+ supported = { [
93
+ " javascript.nextjs" ,
94
+ " javascript.nuxt" ,
95
+ " javascript.sveltekit" ,
96
+ " javascript.astro" ,
97
+ " javascript.solidstart" ,
98
+ ]}
99
+ >
100
+ In addition, you can configure ` __SENTRY_TRACING__ ` to ensure the tracing code
101
+ is removed from your production build. This will result in{ " " }
102
+ <PlatformLink to = " /tracing/distributed-tracing/" >trace propagation</PlatformLink >{ " " }
103
+ being disabled as well. See{ " " }
104
+ <PlatformLink to = " /configuration/tree-shaking/" >Tree Shaking</PlatformLink >{ " " }
105
+ for more information.
106
+ </PlatformSection >
107
+
85
108
## Next Steps
86
109
87
110
<PageGrid />
0 commit comments