File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
10
10
11
+ ### Important Changes
12
+
13
+ - ** ref: Deprecate ` enableTracing ` (12897)**
14
+
15
+ The ` enableTracing ` option has been deprecated and will be removed in the next major version. We recommend removing it
16
+ in favor of the ` tracesSampleRate ` and ` tracesSampler ` options. If you want to enable performance monitoring, please set
17
+ the ` tracesSampleRate ` to a sample rate of your choice, or provide a sampling function as ` tracesSampler ` option
18
+ instead. If you wan't to disable performance monitoring, remove the ` tracesSampler ` and ` tracesSampleRate ` options.
19
+
11
20
Work in this release was contributed by @GitSquared . Thank you for your contribution!
12
21
13
22
## 8.17.0
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export function hasTracingEnabled(
17
17
}
18
18
19
19
const options = maybeOptions || getClientOptions ( ) ;
20
+ // eslint-disable-next-line deprecation/deprecation
20
21
return ! ! options && ( options . enableTracing || 'tracesSampleRate' in options || 'tracesSampler' in options ) ;
21
22
}
22
23
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ function shouldAddPerformanceIntegrations(options: Options): boolean {
92
92
}
93
93
94
94
// We want to ensure `tracesSampleRate` is not just undefined/null here
95
+ // eslint-disable-next-line deprecation/deprecation
95
96
return options . enableTracing || options . tracesSampleRate != null || 'tracesSampler' in options ;
96
97
}
97
98
Original file line number Diff line number Diff line change @@ -89,9 +89,13 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
89
89
tracesSampleRate ?: number ;
90
90
91
91
/**
92
- * If this is enabled, transactions and trace data will be generated and captured.
92
+ * If this is enabled, spans and trace data will be generated and captured.
93
93
* This will set the `tracesSampleRate` to the recommended default of `1.0` if `tracesSampleRate` is undefined.
94
94
* Note that `tracesSampleRate` and `tracesSampler` take precedence over this option.
95
+ *
96
+ * @deprecated This option is deprecated and will be removed in the next major version. If you want to enable performance
97
+ * monitoring, please use the `tracesSampleRate` or `tracesSampler` options instead. If you wan't to disable performance
98
+ * monitoring, remove the `tracesSampler` and `tracesSampleRate` options.
95
99
*/
96
100
enableTracing ?: boolean ;
97
101
You can’t perform that action at this time.
0 commit comments