Skip to content

Commit 9b2e129

Browse files
authored
Rename param and description to proper value
Rename param and description to proper value
1 parent e625633 commit 9b2e129

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,18 @@ public boolean onActivation(Span activeSpan, @Nullable Span previouslyActive) {
326326
* <p>This and {@link #onActivation} are the only methods which are executed in a multi-threaded
327327
* context.
328328
*
329-
* @param activeSpan the span which is about to be activated
329+
* @param deactivatedSpan the span which is about to be deactivated
330330
* @param previouslyActive the span which has previously been activated
331331
* @return {@code true}, if the event could be processed, {@code false} if the internal event
332332
* queue is full which means the event has been discarded
333333
*/
334-
public boolean onDeactivation(Span activeSpan, @Nullable Span previouslyActive) {
334+
public boolean onDeactivation(Span deactivatedSpan, @Nullable Span previouslyActive) {
335335
if (profilingSessionOngoing) {
336336
if (previouslyActive == null) {
337337
profiler.removeThread(Thread.currentThread());
338338
}
339339
boolean success =
340-
eventBuffer.tryPublishEvent(deactivationEventTranslator, activeSpan, previouslyActive);
340+
eventBuffer.tryPublishEvent(deactivationEventTranslator, deactivatedSpan, previouslyActive);
341341
if (!success) {
342342
logger.fine("Could not add deactivation event to ring buffer as no slots are available");
343343
}

0 commit comments

Comments
 (0)