File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,10 @@ export function getDefaultIntegrations(options: Options): Integration[] {
81
81
// Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added
82
82
// This means that generally request isolation will work (because that is done by httpIntegration)
83
83
// But `transactionName` will not be set automatically
84
- ...( shouldAddPerformanceIntegrations ( options ) ? getAutoPerformanceIntegrations ( ) : [ ] ) ,
84
+ ...( hasTracingEnabled ( options ) ? getAutoPerformanceIntegrations ( ) : [ ] ) ,
85
85
] ;
86
86
}
87
87
88
- function shouldAddPerformanceIntegrations ( options : Options ) : boolean {
89
- if ( ! hasTracingEnabled ( options ) ) {
90
- return false ;
91
- }
92
-
93
- // We want to ensure `tracesSampleRate` is not just undefined/null here
94
- // eslint-disable-next-line deprecation/deprecation
95
- return options . enableTracing || options . tracesSampleRate != null || 'tracesSampler' in options ;
96
- }
97
-
98
88
/**
99
89
* Initialize Sentry for Node.
100
90
*/
You can’t perform that action at this time.
0 commit comments