Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
import { RequestEventData } from '../types-hoist/request';
|
|
import { WorkerLocation } from './misc';
|
|
import { SpanAttributes } from './span';
|
|
/**
|
|
* Context data passed by the user when starting a transaction, to be used by the tracesSampler method.
|
|
*/
|
|
export interface CustomSamplingContext {
|
|
[key: string]: any;
|
|
}
|
|
/**
|
|
* Auxiliary data for various sampling mechanisms in the Sentry SDK.
|
|
*/
|
|
export interface SamplingContext extends CustomSamplingContext {
|
|
/**
|
|
* Sampling decision from the parent transaction, if any.
|
|
*/
|
|
parentSampled?: boolean;
|
|
/**
|
|
* Sample rate that is coming from an incoming trace (if there is one).
|
|
*/
|
|
parentSampleRate?: number;
|
|
/**
|
|
* Object representing the URL of the current page or worker script. Passed by default when using the `BrowserTracing`
|
|
* integration.
|
|
*/
|
|
location?: WorkerLocation;
|
|
/**
|
|
* Object representing the incoming request to a node server in a normalized format.
|
|
*/
|
|
normalizedRequest?: RequestEventData;
|
|
/** The name of the span being sampled. */
|
|
name: string;
|
|
/** Initial attributes that have been passed to the span being sampled. */
|
|
attributes?: SpanAttributes;
|
|
}
|
|
/**
|
|
* Auxiliary data passed to the `tracesSampler` function.
|
|
*/
|
|
export interface TracesSamplerSamplingContext extends SamplingContext {
|
|
/**
|
|
* Returns a sample rate value that matches the sampling decision from the incoming trace, or falls back to the provided `fallbackSampleRate`.
|
|
*/
|
|
inheritOrSampleWith: (fallbackSampleRate: number) => number;
|
|
}
|
|
//# sourceMappingURL=samplingcontext.d.ts.map
|