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[] {
8181 // Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added
8282 // This means that generally request isolation will work (because that is done by httpIntegration)
8383 // But `transactionName` will not be set automatically
84- ...( shouldAddPerformanceIntegrations ( options ) ? getAutoPerformanceIntegrations ( ) : [ ] ) ,
84+ ...( hasTracingEnabled ( options ) ? getAutoPerformanceIntegrations ( ) : [ ] ) ,
8585 ] ;
8686}
8787
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-
9888/**
9989 * Initialize Sentry for Node.
10090 */
You can’t perform that action at this time.
0 commit comments