Skip to content

Commit

Permalink
fix depth count
Browse files Browse the repository at this point in the history
  • Loading branch information
vandonr committed Nov 16, 2023
1 parent 619cb0f commit 46e8651
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ record =
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(
@Advice.Enter final AgentScope scope, @Advice.Thrown final Throwable throwable) {
// reset depth count for EstimateSizeAdvice
CallDepthThreadLocalMap.reset(AbstractRecords.class);

PRODUCER_DECORATE.onError(scope, throwable);
PRODUCER_DECORATE.beforeFinish(scope);
scope.close();
Expand Down

0 comments on commit 46e8651

Please sign in to comment.