Skip to content

Commit

Permalink
Ensure correct instance is used when logging in QueueSpan (#2548)
Browse files Browse the repository at this point in the history
As titled.
  • Loading branch information
stevejgordon authored Feb 25, 2025
1 parent 323f418 commit dbc17dc
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 dbc17dc

Please sign in to comment.