class ElasticAPM::TraceContext

def apply_headers

def apply_headers
  yield 'Traceparent', traceparent.to_header
  if tracestate
    yield 'Tracestate', tracestate.to_header
  end
  return unless ElasticAPM.agent.config.use_elastic_traceparent_header
  yield 'Elastic-Apm-Traceparent', traceparent.to_header
end