@@ -47,7 +47,6 @@ public class LatencyProbeService : IHostedService, IDisposable
4747 private readonly ILogger < LatencyProbeService > _logger ;
4848 private readonly IConfiguration _configuration ;
4949 private readonly IServer _server ;
50- private readonly ISimulationTracker _simulationTracker ;
5150
5251 private Thread ? _probeThread ;
5352 private CancellationTokenSource ? _cts ;
@@ -75,15 +74,13 @@ public LatencyProbeService(
7574 IHttpClientFactory httpClientFactory ,
7675 ILogger < LatencyProbeService > logger ,
7776 IConfiguration configuration ,
78- IServer server ,
79- ISimulationTracker simulationTracker )
77+ IServer server )
8078 {
8179 _hubContext = hubContext ?? throw new ArgumentNullException ( nameof ( hubContext ) ) ;
8280 _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException ( nameof ( httpClientFactory ) ) ;
8381 _logger = logger ?? throw new ArgumentNullException ( nameof ( logger ) ) ;
8482 _configuration = configuration ?? throw new ArgumentNullException ( nameof ( configuration ) ) ;
8583 _server = server ?? throw new ArgumentNullException ( nameof ( server ) ) ;
86- _simulationTracker = simulationTracker ?? throw new ArgumentNullException ( nameof ( simulationTracker ) ) ;
8784 }
8885
8986 /// <inheritdoc />
@@ -163,17 +160,6 @@ private void ProbeLoop(object? state)
163160 {
164161 try
165162 {
166- // Pause probing during SlowRequest simulation to avoid spamming the CLR Profile/Trace
167- // with hundreds of "Slow" health probe requests, allowing the user to focus on
168- // the actual test requests.
169- if ( _simulationTracker . GetActiveCountByType ( Models . SimulationType . SlowRequest ) > 0 )
170- {
171- // Update dashboard to show "paused" or just stop sending updates
172- // For now, we just sleep.
173- Thread . Sleep ( 1000 ) ;
174- continue ;
175- }
176-
177163 var result = MeasureLatency ( httpClient , cancellationToken ) ;
178164
179165 // Broadcast to all connected clients
0 commit comments