import { type Span } from "https://deno.land/x/sentry@8.39.0-beta.0/index.d.ts";
A generic Span which holds trace data.
Methods
Get context data for this span. This includes the spanId & the traceId.
Set a single attribute on the span.
Set it to undefined
to remove the attribute.
Set multiple attributes on the span.
Any attribute set to undefined
will be removed.
If this is span is actually recording data. This will return false if tracing is disabled, this span was not sampled or if the span is already finished.
addEvent(): this
name: string,
attributesOrStartTime?: SpanAttributes | SpanTimeInput,
startTime?: SpanTimeInput,
Adds an event to the Span.
NOT USED IN SENTRY, only added for compliance with OTEL Span interface