(span: Span)
| 93 | * Convert a Span to a W3C traceparent header. |
| 94 | */ |
| 95 | export function spanToTraceparentHeader(span: Span): string { |
| 96 | const { traceId, spanId } = span.spanContext(); |
| 97 | const sampled = spanIsSampled(span); |
| 98 | return generateTraceparentHeader(traceId, spanId, sampled); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Converts the span links array to a flattened version to be sent within an envelope. |
no test coverage detected