UNPKG

1.02 kBTypeScriptView Raw
1/**
2 * Data pulled from a `sentry-trace` header
3 */
4export interface TraceparentData {
5 /**
6 * Trace ID
7 */
8 traceId?: string | undefined;
9 /**
10 * Parent Span ID
11 */
12 parentSpanId?: string | undefined;
13 /**
14 * If this transaction has a parent, the parent's sampling decision
15 */
16 parentSampled?: boolean | undefined;
17}
18/**
19 * Contains information about how the name of the transaction was determined. This will be used by the server to decide
20 * whether or not to scrub identifiers from the transaction name, or replace the entire name with a placeholder.
21 */
22export type TransactionSource =
23/** User-defined name */
24'custom'
25/** Raw URL, potentially containing identifiers */
26 | 'url'
27/** Parametrized URL / route */
28 | 'route'
29/** Name of the view handling the request */
30 | 'view'
31/** Named after a software component, such as a function or class name. */
32 | 'component'
33/** Name of a background task (e.g. a Celery task) */
34 | 'task';
35//# sourceMappingURL=transaction.d.ts.map
\No newline at end of file