@@ -84,25 +84,25 @@ public async Task ApplyProfilersAsync(IEndpointInfo endpointInfo, CancellationTo
84
84
85
85
// Currently this is a no-op but ideally will interrupt all callstack collections
86
86
await _profilerChannel . SendMessage ( endpointInfo ,
87
- new JsonProfilerMessage ( ( ushort ) CommandSet . Profiler , ( ushort ) ProfilerCommand . Stop , new EmptyPayload ( ) ) ,
87
+ new JsonProfilerMessage ( ( ushort ) CommandSet . Profiler , ( ushort ) ProfilerCommand . StopAllFeatures , new EmptyPayload ( ) ) ,
88
88
cancellationToken , ResetTimeout ) ;
89
89
await _profilerChannel . SendMessage ( endpointInfo ,
90
- new JsonProfilerMessage ( ( ushort ) CommandSet . Profiler , ( ushort ) ProfilerCommand . Start , new EmptyPayload ( ) ) ,
90
+ new JsonProfilerMessage ( ( ushort ) CommandSet . Profiler , ( ushort ) ProfilerCommand . StartAllFeatures , new EmptyPayload ( ) ) ,
91
91
cancellationToken , ResetTimeout ) ;
92
92
93
93
if ( _inProcessFeatures . IsStartupHookRequired )
94
94
{
95
95
// This will stop all exception pipelines from collecting data and request all parameter captures to be uninstrumented
96
96
await _profilerChannel . SendMessage ( endpointInfo ,
97
- new JsonProfilerMessage ( ( ushort ) CommandSet . StartupHook , ( ushort ) StartupHookCommand . Stop , new EmptyPayload ( ) ) ,
97
+ new JsonProfilerMessage ( ( ushort ) CommandSet . StartupHook , ( ushort ) StartupHookCommand . StopAllFeatures , new EmptyPayload ( ) ) ,
98
98
cancellationToken , ResetTimeout ) ;
99
99
100
100
//CONSIDER Currently this is granular enough because only exceptions really need starts. If that changes, we will need to be more verbose about
101
101
// which features need to be started rather than 1 stop/start for the entire command set.
102
102
if ( _inProcessFeatures . CollectExceptionsOnStartup )
103
103
{
104
104
await _profilerChannel . SendMessage ( endpointInfo ,
105
- new JsonProfilerMessage ( ( ushort ) CommandSet . StartupHook , ( ushort ) StartupHookCommand . Start , new EmptyPayload ( ) ) ,
105
+ new JsonProfilerMessage ( ( ushort ) CommandSet . StartupHook , ( ushort ) StartupHookCommand . StartAllFeatures , new EmptyPayload ( ) ) ,
106
106
cancellationToken , ResetTimeout ) ;
107
107
}
108
108
}
0 commit comments