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/transaction.ts>SamplingContext

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

Data passed to the tracesSampler function, which forms the basis for whatever decisions it might make.

Adds default data to data provided by the user. See Hub.startTransaction

Properties

transactionContext: TransactionContext

Context data with which transaction being sampled was created

optional
parentSampled: boolean

Sampling decision from the parent transaction, if any.

optional
location: WorkerLocation

Object representing the URL of the current page or worker script. Passed by default when using the BrowserTracing integration.

optional
request: ExtractedNodeRequestData

Object representing the incoming request to a node server. Passed by default when using the TracingHandler.