Skip to content

Commit

Permalink
Update session span start time per new clock
Browse files Browse the repository at this point in the history
  • Loading branch information
bidetofevil committed Nov 6, 2023
1 parent 7877669 commit fb23d8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ internal class SpansServiceImpl(
synchronized(completedSpans) {
if (appTerminationCause == null) {
currentSessionSpan.get().endSpan()
currentSessionSpan.set(startSessionSpan(TimeUnit.MILLISECONDS.toNanos(clock.now())))
currentSessionSpan.set(startSessionSpan(clock.now()))
} else {
currentSessionSpan.get()?.let {
it.setAttribute(appTerminationCause.keyName(), appTerminationCause.name)
Expand Down

0 comments on commit fb23d8b

Please sign in to comment.