(storedContext: StoredSpanContext)
| 66 | * Builds span links from a stored span context. |
| 67 | */ |
| 68 | export function buildSpanLinks(storedContext: StoredSpanContext): SpanLink[] { |
| 69 | return [ |
| 70 | { |
| 71 | context: { |
| 72 | traceId: storedContext.traceId, |
| 73 | spanId: storedContext.spanId, |
| 74 | traceFlags: storedContext.sampled ? TraceFlags.SAMPLED : TraceFlags.NONE, |
| 75 | }, |
| 76 | attributes: { |
| 77 | [SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]: 'previous_trace', |
| 78 | }, |
| 79 | }, |
| 80 | ]; |
| 81 | } |
no outgoing calls
no test coverage detected