(dsc: Partial<DynamicSamplingContext>)
| 123 | */ |
| 124 | export function createSpanEnvelope(spans: [SentrySpan, ...SentrySpan[]], client?: Client): SpanEnvelope { |
| 125 | function dscHasRequiredProps(dsc: Partial<DynamicSamplingContext>): dsc is DynamicSamplingContext { |
| 126 | return !!dsc.trace_id && !!dsc.public_key; |
| 127 | } |
| 128 | |
| 129 | // For the moment we'll obtain the DSC from the first span in the array |
| 130 | // This might need to be changed if we permit sending multiple spans from |
no outgoing calls
no test coverage detected