We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7224c commit 8c8b02fCopy full SHA for 8c8b02f
src/OpenTelemetry.Instrumentation.AspNet/Implementation/HttpInListener.cs
@@ -32,9 +32,9 @@ public void Dispose()
32
TelemetryHttpModule.Options.OnExceptionCallback -= this.OnException;
33
}
34
35
- internal static double CalculateDurationFromTimestamp(long begin, long? end = null)
+ private static double CalculateDurationFromTimestamp(long begin)
36
{
37
- end ??= Stopwatch.GetTimestamp();
+ var end = Stopwatch.GetTimestamp();
38
var delta = end - begin;
39
var ticks = (long)(TimestampToTicks * delta);
40
var duration = new TimeSpan(ticks);
0 commit comments