Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/types/src/index.ts>Transaction

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

Transaction "Class", inherits Span only has setName

Properties

spanId: string
traceId: string
startTimestamp: number
tags: { [key: string]: Primitive; }
data: { [key: string]: any; }

Metadata about the transaction

Methods

setName(name: string, source?: TransactionMetadata["source"]): void

Set the name of the transaction

setMeasurement(
name: string,
value: number,
): void

Set observed measurement for this transaction.

toContext(): TransactionContext

Returns the current transaction properties as a TransactionContext

updateWithContext(transactionContext: TransactionContext): this

Updates the current transaction with a new TransactionContext

setMetadata(newMetadata: TransactionMetadata): void

Set metadata for this transaction.

getBaggage(): Baggage

return the baggage for dynamic sampling and trace propagation