diff --git a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaExternalTaskActivityBehaviorInstrumentation.java b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaExternalTaskActivityBehaviorInstrumentation.java index 1fa07fac7ea4..43c66652fa30 100644 --- a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaExternalTaskActivityBehaviorInstrumentation.java +++ b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaExternalTaskActivityBehaviorInstrumentation.java @@ -71,8 +71,6 @@ public static void addTracingEnter( request.setActivityId(Optional.ofNullable(execution.getCurrentActivityId())); request.setActivityName(Optional.ofNullable(execution.getCurrentActivityName())); - if (Java8BytecodeBridge.currentContext() == Java8BytecodeBridge.rootContext()) {} - parentContext = getOpentelemetry() .getPropagators() diff --git a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaTaskActivityBehaviorInstrumentation.java b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaTaskActivityBehaviorInstrumentation.java index ba7c1267ae80..a8842ead3ef6 100644 --- a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaTaskActivityBehaviorInstrumentation.java +++ b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaTaskActivityBehaviorInstrumentation.java @@ -65,8 +65,6 @@ public static void addTracingEnter( request.setActivityId(Optional.ofNullable(execution.getCurrentActivityId())); request.setActivityName(Optional.ofNullable(execution.getCurrentActivityName())); - if (Java8BytecodeBridge.currentContext() == Java8BytecodeBridge.rootContext()) {} - Context parentContext = getOpentelemetry() .getPropagators()