Skip to content

Commit 8c8b02f

Browse files
authored
[AspNet] HttpInListener.CalculateDurationFromTimestamp - remove optional parameter (#3170)
1 parent 9f7224c commit 8c8b02f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenTelemetry.Instrumentation.AspNet/Implementation/HttpInListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public void Dispose()
3232
TelemetryHttpModule.Options.OnExceptionCallback -= this.OnException;
3333
}
3434

35-
internal static double CalculateDurationFromTimestamp(long begin, long? end = null)
35+
private static double CalculateDurationFromTimestamp(long begin)
3636
{
37-
end ??= Stopwatch.GetTimestamp();
37+
var end = Stopwatch.GetTimestamp();
3838
var delta = end - begin;
3939
var ticks = (long)(TimestampToTicks * delta);
4040
var duration = new TimeSpan(ticks);

0 commit comments

Comments
 (0)