Skip to content

Commit 3445668

Browse files
committed
Renaming virtual field
1 parent 5b99c27 commit 3445668

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

instrumentation/undertow-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/undertow/HttpServerExchangeInstrumentation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
package io.opentelemetry.javaagent.instrumentation.undertow;
77

8-
import static io.opentelemetry.javaagent.instrumentation.undertow.UndertowSingletons.RUNNABLE_PROPAGATED_CONTEXT;
8+
import static io.opentelemetry.javaagent.instrumentation.undertow.UndertowSingletons.PROPAGATED_CONTEXT;
99
import static net.bytebuddy.matcher.ElementMatchers.named;
1010
import static net.bytebuddy.matcher.ElementMatchers.takesArguments;
1111

@@ -41,7 +41,7 @@ public static class DispatchAdvice {
4141
public static PropagatedContext enterJobSubmit(@Advice.Argument(1) Runnable task) {
4242
Context context = Java8BytecodeBridge.currentContext();
4343
if (ExecutorAdviceHelper.shouldPropagateContext(context, task)) {
44-
return ExecutorAdviceHelper.attachContextToTask(context, RUNNABLE_PROPAGATED_CONTEXT, task);
44+
return ExecutorAdviceHelper.attachContextToTask(context, PROPAGATED_CONTEXT, task);
4545
}
4646
return null;
4747
}
@@ -52,7 +52,7 @@ public static void exitJobSubmit(
5252
@Advice.Enter PropagatedContext propagatedContext,
5353
@Advice.Thrown Throwable throwable) {
5454
ExecutorAdviceHelper.cleanUpAfterSubmit(
55-
propagatedContext, throwable, RUNNABLE_PROPAGATED_CONTEXT, task);
55+
propagatedContext, throwable, PROPAGATED_CONTEXT, task);
5656
}
5757
}
5858
}

instrumentation/undertow-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/undertow/UndertowSingletons.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public final class UndertowSingletons {
1818

1919
private static final Instrumenter<HttpServerExchange, HttpServerExchange> INSTRUMENTER;
2020

21-
public static final VirtualField<Runnable, PropagatedContext> RUNNABLE_PROPAGATED_CONTEXT =
21+
public static final VirtualField<Runnable, PropagatedContext> PROPAGATED_CONTEXT =
2222
VirtualField.find(Runnable.class, PropagatedContext.class);
2323

2424
static {

0 commit comments

Comments
 (0)