(span: Span)
| 84 | * Convert a Span to a Sentry trace header. |
| 85 | */ |
| 86 | export function spanToTraceHeader(span: Span): string { |
| 87 | const { traceId, spanId } = span.spanContext(); |
| 88 | const sampled = spanIsSampled(span); |
| 89 | return generateSentryTraceHeader(traceId, spanId, sampled); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Convert a Span to a W3C traceparent header. |
no test coverage detected