Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sentry_deno/packages/types/src/span.ts>SpanContext

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
interface SpanContext
import { type SpanContext } from "https://deno.land/x/sentry_deno@v0.2.2/packages/types/src/span.ts";

Interface holding all properties that can be set on a Span on creation.

Properties

optional
description: string

Description of the Span.

optional
op: string

Operation of the Span.

optional
status: string

Completion status of the Span. See: {@sentry/tracing SpanStatus} for possible values

optional
parentSpanId: string

Parent Span ID

optional
sampled: boolean

Was this span chosen to be sent as part of the sample?

optional
spanId: string

Span ID

optional
traceId: string

Trace ID

optional
tags: { [key: string]: Primitive; }

Tags of the Span.

optional
data: { [key: string]: any; }

Data of the Span.

optional
startTimestamp: number

Timestamp in seconds (epoch time) indicating when the span started.

optional
endTimestamp: number

Timestamp in seconds (epoch time) indicating when the span ended.