Data of the Span.
Optional descriptionDescription of the Span.
Optional endTimestamp in seconds (epoch time) indicating when the span ended.
Human-readable identifier for the transaction
Optional opOperation of the Span.
Optional parentIf this transaction has a parent, the parent's sampling decision
Optional parentParent Span ID
Optional sampledWas this span chosen to be sent as part of the sample?
Span ID
Timestamp in seconds (epoch time) indicating when the span started.
Optional statusCompletion status of the Span. See: {@sentry/tracing SpanStatus} for possible values
Tags of the Span.
Trace ID
Optional transactionThe transaction containing this span
Optional trimIf 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.
Use startChild
Optional spanContext: Pick<SpanContext, "description" | "op" | "status" | "tags" | "data" | "startTimestamp" | "endTimestamp">Convert the object to JSON for w. spans array info only
Sets the data attribute on the current span
Data key
Data value
Sets the status attribute on the current span based on the http code
http code used to set the status
Sets the status attribute on the current span See: {@sentry/tracing SpanStatus} for possible values
http code used to set the status
Sets the tag attribute on the current span.
Can also be used to unset a tag, by passing undefined.
Tag key
Tag value
Creates a new Span while setting the current Span.id as parentSpanId.
Also the sampled decision will be inherited.
Optional spanContext: Pick<SpanContext, "description" | "op" | "status" | "tags" | "data" | "startTimestamp" | "endTimestamp">Returns the current transaction properties as a TransactionContext
Convert the object to JSON
Optional data?: { Optional description?: stringOptional op?: stringOptional parent_Optional status?: stringOptional tags?: { Optional timestamp?: numberUpdates the current transaction with a new TransactionContext
Generated using TypeDoc
Transaction "Class", inherits Span only has
setName