Skip to content

Commit

Permalink
Ensure correct instance is used when logging in QueueSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Feb 3, 2025
1 parent a0458c9 commit 71af9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elastic.Apm/Model/Span.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ void QueueSpan(Span span)
DroppedSpanStatCache.Value.DestinationServiceResource, _outcome, Duration!.Value);
break;
}
_logger?.Trace()?.Log("Dropping fast exit span on composite span. Composite duration: {duration}", Composite.Sum);
_logger?.Trace()?.Log("Dropping fast exit span on composite span. Composite duration: {duration}", span.Composite.Sum);
return;
}
if (span.Duration < span.Configuration.ExitSpanMinDuration)
Expand All @@ -589,7 +589,7 @@ void QueueSpan(Span span)
DroppedSpanStatCache.Value.DestinationServiceResource, _outcome, Duration!.Value);
break;
}
_logger?.Trace()?.Log("Dropping fast exit span. Duration: {duration}", Duration);
_logger?.Trace()?.Log("Dropping fast exit span. Duration: {duration}", span.Duration);
return;
}
}
Expand Down

0 comments on commit 71af9ca

Please sign in to comment.