Missed a static import

This commit is contained in:
Brian Devins-Suresh 2020-03-23 15:59:06 -04:00
parent d3def8ce2d
commit acba3626dc
1 changed files with 2 additions and 1 deletions

View File

@ -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.