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

Function isSpanTimeInput

packages/core/src/tracing/sentrySpan.ts:456–458  ·  view source on GitHub ↗
(value: undefined | SpanAttributes | SpanTimeInput)

Source from the content-addressed store, hash-verified

454}
455
456function isSpanTimeInput(value: undefined | SpanAttributes | SpanTimeInput): value is SpanTimeInput {
457 return (value && typeof value === 'number') || value instanceof Date || Array.isArray(value);
458}
459
460// We want to filter out any incomplete SpanJSON objects
461function isFullFinishedSpan(input: Partial<SpanJSON>): input is SpanJSON {

Callers 1

addEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected