import { type Span } from "https://deno.land/x/sentry@7.120.0/index.mjs";
Span holding trace_id, span_id
Properties
Was this span chosen to be sent as part of the sample?
Timestamp in seconds (epoch time) indicating when the span ended.
The transaction containing this span
Completion status of the Span.
See: {@sentry/tracing SpanStatus} for possible values
Methods
Get context data for this span. This includes the spanId & the traceId.
Sets the tag attribute on the current span.
Can also be used to unset a tag, by passing undefined
.
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.
Sets the status attribute on the current span See: {@sentry/tracing SpanStatus} for possible values
Sets the status attribute on the current span based on the http code
Creates a new Span
while setting the current Span.id
as parentSpanId
.
Also the sampled
decision will be inherited.
Updates the current span with a new SpanContext
.