2 writes to Duration
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
767Duration = endTimeUtc - StartTimeUtc; 769Duration = new TimeSpan(1); // We want Duration of 0 to mean 'EndTime not set)
9 references to Duration
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
115if (parent.Duration == TimeSpan.Zero)
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
475if (activity.Duration == TimeSpan.Zero)
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationDiagnosticsTests.cs (2)
640Assert.True(Activity.Current.Duration > TimeSpan.Zero); 664Assert.True(Activity.Current.Duration > TimeSpan.Zero);
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (4)
753/// Update the Activity to set <see cref="Duration"/> 768if (Duration.Ticks <= 0) 843/// If end time was not set previously, sets <see cref="Duration"/> as a difference between <see cref="DateTime.UtcNow"/> and <see cref="StartTimeUtc"/> 860if (Duration == TimeSpan.Zero)
System\Diagnostics\DiagnosticSourceActivity.cs (1)
57if (activity.Duration == TimeSpan.Zero)