I guess I am not clear on how to pass context to the openTracing API using the elastic APM bridge. Jaeger imports a tracing package:
try (Scope scope = Tracing.startServerSpan(tracer, httpHeaders, "publish")) {
System.out.println(helloStr);
scope.span().log(ImmutableMap.of("event", "println", "value", helloStr));
return "published";
}
In this case, I can't just replace the Jaeger tracing package with the elastic APM tracer, or can I?