function traceHeaders() {
  // eslint-disable-next-line deprecation/deprecation
  const scope = this.getScope();
  // eslint-disable-next-line deprecation/deprecation
  const span = scope.getSpan();

  return span
    ? {
        'sentry-trace': spanUtils.spanToTraceHeader(span),
      }
    : {};
}
Returns all trace headers that are currently on the top scope.