Interface TransactionContext

Interface holding Transaction-specific properties

Hierarchy

Properties

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

Data of the Span.

Type declaration

  • [key: string]: any
description?: string

Description of the Span.

endTimestamp?: number

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

name: string

Human-readable identifier for the transaction

op?: string

Operation of the Span.

parentSampled?: boolean

If this transaction has a parent, the parent's sampling decision

parentSpanId?: string

Parent Span ID

sampled?: boolean

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

spanId?: string

Span ID

startTimestamp?: number

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

status?: string

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

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

Tags of the Span.

Type declaration

traceId?: string

Trace ID

trimEnd?: boolean

If true, sets the end timestamp of the transaction to the highest timestamp of child spans, trimming the duration of the transaction. This is useful to discard extra time in the transaction that is not accounted for in child spans, like what happens in the idle transaction Tracing integration, where we finish the transaction after a given "idle time" and we don't want this "idle time" to be part of the transaction.

Generated using TypeDoc