2 implementations of GetCheckpointToken
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyContextTokenIssuer.cs (1)
24public CheckpointToken GetCheckpointToken(string name)
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\NullLatencyContext.cs (1)
52public CheckpointToken GetCheckpointToken(string name) => default;
23 references to GetCheckpointToken
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Latency\CapturePipelineEntryMiddleware.cs (1)
22_elapsedTillEntry = tokenIssuer.GetCheckpointToken(RequestCheckpointConstants.ElapsedTillEntryMiddleware);
Latency\CapturePipelineExitMiddleware.cs (2)
24_elapsedTillPipelineExit = tokenIssuer.GetCheckpointToken(RequestCheckpointConstants.ElapsedTillPipelineExitMiddleware); 25_elapsedResponseProcessed = tokenIssuer.GetCheckpointToken(RequestCheckpointConstants.ElapsedResponseProcessed);
Latency\CaptureResponseTimeMiddleware.cs (2)
24_elapsedTillHeaders = tokenIssuer.GetCheckpointToken(RequestCheckpointConstants.ElapsedTillHeaders); 25_elapsedTillFinished = tokenIssuer.GetCheckpointToken(RequestCheckpointConstants.ElapsedTillFinished);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\AcceptanceTests.cs (1)
55latencyContext.AddCheckpoint(tokenIssuer.GetCheckpointToken(checkpointName));
Microsoft.Extensions.Http.Diagnostics (5)
Latency\Internal\HttpClientLatencyLogEnricher.cs (1)
32_enricherInvoked = tokenIssuer.GetCheckpointToken(HttpCheckpoints.EnricherInvoked);
Latency\Internal\HttpLatencyTelemetryHandler.cs (1)
34_handlerStart = tokenIssuer.GetCheckpointToken(HttpCheckpoints.HandlerRequestStart);
Latency\Internal\HttpRequestLatencyListener.cs (3)
127socket[key] = tokenIssuer.GetCheckpointToken(_socketMap[key]); 133nameResolution[key] = tokenIssuer.GetCheckpointToken(_nameResolutionMap[key]); 139http[key] = tokenIssuer.GetCheckpointToken(_httpMap[key]);
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (2)
38lcti2.Verify(a => a.GetCheckpointToken(It.Is<string>(s => !HttpCheckpoints.Checkpoints.Contains(s))), Times.Never); 39lcti2.Verify(a => a.GetCheckpointToken(It.Is<string>(s => HttpCheckpoints.Checkpoints.Contains(s))));
Latency\Internal\HttpMockProvider.cs (1)
23lcti.Setup(a => a.GetCheckpointToken(It.IsAny<string>()))
Latency\Internal\HttpRequestLatencyListenerTest.cs (2)
36lcti.Verify(a => a.GetCheckpointToken(It.Is<string>(s => !HttpCheckpoints.Checkpoints.Contains(s))), Times.Never); 37lcti.Verify(a => a.GetCheckpointToken(It.Is<string>(s => HttpCheckpoints.Checkpoints.Contains(s))));
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Latency\NoopLatencyContextTests.cs (1)
68context.AddCheckpoint(issuer.GetCheckpointToken(string.Empty));
Microsoft.Extensions.Telemetry.Tests (6)
Latency\Internal\LatencyContextProviderTests.cs (4)
41var ct = tokenissuer.GetCheckpointToken("ca"); 51ct = tokenissuer.GetCheckpointToken("ca1"); 77var ct = tokenissuer.GetCheckpointToken("ca"); 87Assert.Throws<ArgumentException>(() => tokenissuer.GetCheckpointToken("ca1"));
Latency\Internal\LatencyContextTests.cs (2)
247var checkpointToken = tokenIssuer.GetCheckpointToken(TokenName); 273var checkpointToken = tokenIssuer.GetCheckpointToken(TokenName);