Missed a static import
@@ -4,6 +4,7 @@ import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.activateSp
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.activeSpan;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.propagate;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.startSpan;
+import static datadog.trace.instrumentation.play23.PlayHeaders.GETTER;
import static datadog.trace.instrumentation.play23.PlayHttpServerDecorator.DECORATE;
import datadog.trace.bootstrap.instrumentation.api.AgentScope;
@@ -21,7 +22,7 @@ public class PlayAdvice {
public static AgentScope onEnter(@Advice.Argument(0) final Request req) {
final AgentSpan span;
if (activeSpan() == null) {
- final Context extractedContext = propagate().extract(req.headers(), PlayHeaders.GETTER);
+ final Context extractedContext = propagate().extract(req.headers(), GETTER);
span = startSpan("play.request", extractedContext);
} else {
// An upstream framework (e.g. akka-http, netty) has already started the span.
