From 9b2e129ecc004ab86f777856d4a5fc1503bab063 Mon Sep 17 00:00:00 2001 From: Steve Rao Date: Fri, 4 Oct 2024 17:20:32 +0800 Subject: [PATCH] Rename param and description to proper value Rename param and description to proper value --- .../contrib/inferredspans/internal/SamplingProfiler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java b/inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java index e40134c3b..215c99a6c 100644 --- a/inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java +++ b/inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java @@ -326,18 +326,18 @@ public boolean onActivation(Span activeSpan, @Nullable Span previouslyActive) { *

This and {@link #onActivation} are the only methods which are executed in a multi-threaded * context. * - * @param activeSpan the span which is about to be activated + * @param deactivatedSpan the span which is about to be deactivated * @param previouslyActive the span which has previously been activated * @return {@code true}, if the event could be processed, {@code false} if the internal event * queue is full which means the event has been discarded */ - public boolean onDeactivation(Span activeSpan, @Nullable Span previouslyActive) { + public boolean onDeactivation(Span deactivatedSpan, @Nullable Span previouslyActive) { if (profilingSessionOngoing) { if (previouslyActive == null) { profiler.removeThread(Thread.currentThread()); } boolean success = - eventBuffer.tryPublishEvent(deactivationEventTranslator, activeSpan, previouslyActive); + eventBuffer.tryPublishEvent(deactivationEventTranslator, deactivatedSpan, previouslyActive); if (!success) { logger.fine("Could not add deactivation event to ring buffer as no slots are available"); }