Is Tracing.startServerSpan an OpenTracing API?
In any case, your imports are not included in this code snippet, but assuming the tracer here is of type io.opentracing.Tracer, you wouldn't need to change anything in this specific code, as long as you make sure that tracer you are using here is an instance of co.elastic.apm.opentracing.ElasticApmTracer, as @axw instructed above.