File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,12 @@ function stopProfiler(): void {
7171/**
7272 * Starts a new profiler session.
7373 */
74- function startProfilerSession ( ) : void {
75- }
74+ function startProfilerSession ( ) : void { }
7675
7776/**
7877 * Stops the current profiler session.
7978 */
80- function stopProfilerSession ( ) : void {
81- }
79+ function stopProfilerSession ( ) : void { }
8280
8381export const profiler : Profiler = {
8482 startProfiler,
Original file line number Diff line number Diff line change @@ -447,9 +447,8 @@ export const _nodeProfilingIntegration = ((): ProfilingIntegration<NodeClient> =
447447 const options = client . getOptions ( ) ;
448448 const profilingAPIVersion = getProfilingMode ( options ) ;
449449
450-
451450 if ( profilingAPIVersion === 'legacy' ) {
452- const mode = ( 'profilesSampleRate' in options || 'profilesSampler' in options ) ? 'span' : 'continuous' ;
451+ const mode = 'profilesSampleRate' in options || 'profilesSampler' in options ? 'span' : 'continuous' ;
453452
454453 switch ( mode ) {
455454 case 'continuous' : {
@@ -468,15 +467,14 @@ export const _nodeProfilingIntegration = ((): ProfilingIntegration<NodeClient> =
468467 DEBUG_BUILD && logger . warn ( `[Profiling] Unknown profiler mode: ${ mode } , profiler was not initialized` ) ;
469468 }
470469 }
471- }
472-
473- else if ( profilingAPIVersion === 'current' ) {
470+ } else if ( profilingAPIVersion === 'current' ) {
474471 DEBUG_BUILD && logger . log ( '[Profiling] Continuous profiler mode enabled.' ) ;
475472 this . _profiler . initialize ( client ) ;
476473 return ;
477474 }
478475
479- DEBUG_BUILD && logger . log ( [ '[Profiling] Profiling integration is added, but not enabled due to lack of SDK.init options.' ] )
476+ DEBUG_BUILD &&
477+ logger . log ( [ '[Profiling] Profiling integration is added, but not enabled due to lack of SDK.init options.' ] ) ;
480478 return ;
481479 } ,
482480 } ;
@@ -492,7 +490,7 @@ function getProfilingMode(options: NodeOptions): 'legacy' | 'current' | null {
492490 return 'legacy' ;
493491 }
494492
495- if ( 'profileSessionSampleRate' in options || 'profileLifecycle' in options ) {
493+ if ( 'profileSessionSampleRate' in options || 'profileLifecycle' in options ) {
496494 return 'current' ;
497495 }
498496
You can’t perform that action at this time.
0 commit comments