6 instantiations of InternalMicrosoftProbeDiagnostic
aspire (4)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (4)
344diagnostics.Add(new InternalMicrosoftProbeDiagnostic(probe.Name, InternalMicrosoftProbeOutcome.TimedOut, _probeStageTimeout, HasAlias: false, HasDomain: false)); 387new InternalMicrosoftProbeDiagnostic(probe.Name, outcome, probe.DurationOverride ?? stopwatch.Elapsed, !string.IsNullOrEmpty(result.Alias), !string.IsNullOrEmpty(result.Domain), result.Failure), 397new InternalMicrosoftProbeDiagnostic(probe.Name, InternalMicrosoftProbeOutcome.Cancelled, stopwatch.Elapsed, HasAlias: false, HasDomain: false), 411new InternalMicrosoftProbeDiagnostic(
Aspire.Cli.Tests (2)
Telemetry\AspireCliTelemetryTests.cs (2)
737new InternalMicrosoftProbeDiagnostic("test source", InternalMicrosoftProbeOutcome.Detected, TimeSpan.FromMilliseconds(12), HasAlias: true, HasDomain: true) 766new InternalMicrosoftProbeDiagnostic(
12 references to InternalMicrosoftProbeDiagnostic
aspire (7)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (6)
248var diagnostics = new List<InternalMicrosoftProbeDiagnostic>(); 323var diagnostics = new List<InternalMicrosoftProbeDiagnostic>(); 329var diagnostic = task.Result.Diagnostic; 1929private sealed record InternalMicrosoftProbeStageResult(InternalMicrosoftDetectionResult? Result, IReadOnlyList<InternalMicrosoftProbeDiagnostic> Diagnostics, bool TimedOut); 1930private sealed record InternalMicrosoftProbeRunResult(InternalMicrosoftProbe Probe, string Source, InternalMicrosoftProbeResult Result, InternalMicrosoftProbeDiagnostic Diagnostic, long CompletionTimestamp); 2042IReadOnlyList<InternalMicrosoftProbeDiagnostic> ProbeDiagnostics)
Telemetry\AspireCliTelemetry.cs (1)
378foreach (var probe in result.ProbeDiagnostics)
Aspire.Cli.Tests (5)
Telemetry\InternalMicrosoftDetectorTests.cs (4)
342var failure = Assert.Single(result.ProbeDiagnostics, probe => probe.Source == "faulting"); 479var diagnostic = Assert.Single(result.ProbeDiagnostics); 1009var diagnostic = Assert.Single(result.ProbeDiagnostics); 1084var diagnostic = Assert.Single(result.ProbeDiagnostics);
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
32public IReadOnlyList<InternalMicrosoftProbeDiagnostic> ProbeDiagnostics { get; set; } = [];