MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / dscHasRequiredProps

Function dscHasRequiredProps

packages/core/src/envelope.ts:125–127  ·  view source on GitHub ↗
(dsc: Partial<DynamicSamplingContext>)

Source from the content-addressed store, hash-verified

123 */
124export 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

Callers 1

createSpanEnvelopeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected