@sentry/types 8.41.0 → 8.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/build/esm/package.json +1 -1
- package/build/types/index.d.ts +377 -53
- package/build/types/index.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +377 -53
- package/package.json +4 -1
- package/build/types/attachment.d.ts +0 -29
- package/build/types/attachment.d.ts.map +0 -1
- package/build/types/breadcrumb.d.ts +0 -96
- package/build/types/breadcrumb.d.ts.map +0 -1
- package/build/types/browseroptions.d.ts +0 -25
- package/build/types/browseroptions.d.ts.map +0 -1
- package/build/types/checkin.d.ts +0 -100
- package/build/types/checkin.d.ts.map +0 -1
- package/build/types/client.d.ts +0 -323
- package/build/types/client.d.ts.map +0 -1
- package/build/types/clientreport.d.ts +0 -12
- package/build/types/clientreport.d.ts.map +0 -1
- package/build/types/context.d.ts +0 -119
- package/build/types/context.d.ts.map +0 -1
- package/build/types/datacategory.d.ts +0 -2
- package/build/types/datacategory.d.ts.map +0 -1
- package/build/types/debugMeta.d.ts +0 -28
- package/build/types/debugMeta.d.ts.map +0 -1
- package/build/types/dsn.d.ts +0 -22
- package/build/types/dsn.d.ts.map +0 -1
- package/build/types/envelope.d.ts +0 -127
- package/build/types/envelope.d.ts.map +0 -1
- package/build/types/error.d.ts +0 -7
- package/build/types/error.d.ts.map +0 -1
- package/build/types/event.d.ts +0 -99
- package/build/types/event.d.ts.map +0 -1
- package/build/types/eventprocessor.d.ts +0 -12
- package/build/types/eventprocessor.d.ts.map +0 -1
- package/build/types/exception.d.ts +0 -12
- package/build/types/exception.d.ts.map +0 -1
- package/build/types/extra.d.ts +0 -3
- package/build/types/extra.d.ts.map +0 -1
- package/build/types/feedback/config.d.ts +0 -178
- package/build/types/feedback/config.d.ts.map +0 -1
- package/build/types/feedback/form.d.ts +0 -8
- package/build/types/feedback/form.d.ts.map +0 -1
- package/build/types/feedback/index.d.ts +0 -71
- package/build/types/feedback/index.d.ts.map +0 -1
- package/build/types/feedback/sendFeedback.d.ts +0 -49
- package/build/types/feedback/sendFeedback.d.ts.map +0 -1
- package/build/types/feedback/theme.d.ts +0 -35
- package/build/types/feedback/theme.d.ts.map +0 -1
- package/build/types/hub.d.ts +0 -195
- package/build/types/hub.d.ts.map +0 -1
- package/build/types/instrument.d.ts +0 -69
- package/build/types/instrument.d.ts.map +0 -1
- package/build/types/integration.d.ts +0 -52
- package/build/types/integration.d.ts.map +0 -1
- package/build/types/measurement.d.ts +0 -24
- package/build/types/measurement.d.ts.map +0 -1
- package/build/types/mechanism.d.ts +0 -51
- package/build/types/mechanism.d.ts.map +0 -1
- package/build/types/metrics.d.ts +0 -94
- package/build/types/metrics.d.ts.map +0 -1
- package/build/types/misc.d.ts +0 -53
- package/build/types/misc.d.ts.map +0 -1
- package/build/types/opentelemetry.d.ts +0 -14
- package/build/types/opentelemetry.d.ts.map +0 -1
- package/build/types/options.d.ts +0 -315
- package/build/types/options.d.ts.map +0 -1
- package/build/types/package.d.ts +0 -8
- package/build/types/package.d.ts.map +0 -1
- package/build/types/parameterize.d.ts +0 -5
- package/build/types/parameterize.d.ts.map +0 -1
- package/build/types/polymorphics.d.ts +0 -71
- package/build/types/polymorphics.d.ts.map +0 -1
- package/build/types/profiling.d.ts +0 -143
- package/build/types/profiling.d.ts.map +0 -1
- package/build/types/replay.d.ts +0 -25
- package/build/types/replay.d.ts.map +0 -1
- package/build/types/request.d.ts +0 -38
- package/build/types/request.d.ts.map +0 -1
- package/build/types/runtime.d.ts +0 -6
- package/build/types/runtime.d.ts.map +0 -1
- package/build/types/samplingcontext.d.ts +0 -41
- package/build/types/samplingcontext.d.ts.map +0 -1
- package/build/types/scope.d.ts +0 -241
- package/build/types/scope.d.ts.map +0 -1
- package/build/types/sdkinfo.d.ts +0 -8
- package/build/types/sdkinfo.d.ts.map +0 -1
- package/build/types/sdkmetadata.d.ts +0 -5
- package/build/types/sdkmetadata.d.ts.map +0 -1
- package/build/types/session.d.ts +0 -75
- package/build/types/session.d.ts.map +0 -1
- package/build/types/severity.d.ts +0 -2
- package/build/types/severity.d.ts.map +0 -1
- package/build/types/span.d.ts +0 -222
- package/build/types/span.d.ts.map +0 -1
- package/build/types/spanStatus.d.ts +0 -59
- package/build/types/spanStatus.d.ts.map +0 -1
- package/build/types/stackframe.d.ts +0 -22
- package/build/types/stackframe.d.ts.map +0 -1
- package/build/types/stacktrace.d.ts +0 -10
- package/build/types/stacktrace.d.ts.map +0 -1
- package/build/types/startSpanOptions.d.ts +0 -46
- package/build/types/startSpanOptions.d.ts.map +0 -1
- package/build/types/thread.d.ts +0 -10
- package/build/types/thread.d.ts.map +0 -1
- package/build/types/timedEvent.d.ts +0 -7
- package/build/types/timedEvent.d.ts.map +0 -1
- package/build/types/tracing.d.ts +0 -51
- package/build/types/tracing.d.ts.map +0 -1
- package/build/types/transaction.d.ts +0 -35
- package/build/types/transaction.d.ts.map +0 -1
- package/build/types/transport.d.ts +0 -32
- package/build/types/transport.d.ts.map +0 -1
- package/build/types/user.d.ts +0 -17
- package/build/types/user.d.ts.map +0 -1
- package/build/types/view-hierarchy.d.ts +0 -18
- package/build/types/view-hierarchy.d.ts.map +0 -1
- package/build/types/webfetchapi.d.ts +0 -15
- package/build/types/webfetchapi.d.ts.map +0 -1
- package/build/types/wrappedfunction.d.ts +0 -7
- package/build/types/wrappedfunction.d.ts.map +0 -1
- package/build/types-ts3.8/attachment.d.ts +0 -29
- package/build/types-ts3.8/breadcrumb.d.ts +0 -96
- package/build/types-ts3.8/browseroptions.d.ts +0 -25
- package/build/types-ts3.8/checkin.d.ts +0 -100
- package/build/types-ts3.8/client.d.ts +0 -323
- package/build/types-ts3.8/clientreport.d.ts +0 -12
- package/build/types-ts3.8/context.d.ts +0 -119
- package/build/types-ts3.8/datacategory.d.ts +0 -2
- package/build/types-ts3.8/debugMeta.d.ts +0 -28
- package/build/types-ts3.8/dsn.d.ts +0 -22
- package/build/types-ts3.8/envelope.d.ts +0 -136
- package/build/types-ts3.8/error.d.ts +0 -7
- package/build/types-ts3.8/event.d.ts +0 -99
- package/build/types-ts3.8/eventprocessor.d.ts +0 -12
- package/build/types-ts3.8/exception.d.ts +0 -12
- package/build/types-ts3.8/extra.d.ts +0 -3
- package/build/types-ts3.8/feedback/config.d.ts +0 -178
- package/build/types-ts3.8/feedback/form.d.ts +0 -8
- package/build/types-ts3.8/feedback/index.d.ts +0 -71
- package/build/types-ts3.8/feedback/sendFeedback.d.ts +0 -49
- package/build/types-ts3.8/feedback/theme.d.ts +0 -35
- package/build/types-ts3.8/hub.d.ts +0 -195
- package/build/types-ts3.8/instrument.d.ts +0 -69
- package/build/types-ts3.8/integration.d.ts +0 -52
- package/build/types-ts3.8/measurement.d.ts +0 -24
- package/build/types-ts3.8/mechanism.d.ts +0 -51
- package/build/types-ts3.8/metrics.d.ts +0 -94
- package/build/types-ts3.8/misc.d.ts +0 -53
- package/build/types-ts3.8/opentelemetry.d.ts +0 -17
- package/build/types-ts3.8/options.d.ts +0 -315
- package/build/types-ts3.8/package.d.ts +0 -8
- package/build/types-ts3.8/parameterize.d.ts +0 -5
- package/build/types-ts3.8/polymorphics.d.ts +0 -71
- package/build/types-ts3.8/profiling.d.ts +0 -143
- package/build/types-ts3.8/replay.d.ts +0 -25
- package/build/types-ts3.8/request.d.ts +0 -41
- package/build/types-ts3.8/runtime.d.ts +0 -6
- package/build/types-ts3.8/samplingcontext.d.ts +0 -41
- package/build/types-ts3.8/scope.d.ts +0 -241
- package/build/types-ts3.8/sdkinfo.d.ts +0 -8
- package/build/types-ts3.8/sdkmetadata.d.ts +0 -5
- package/build/types-ts3.8/session.d.ts +0 -75
- package/build/types-ts3.8/severity.d.ts +0 -2
- package/build/types-ts3.8/span.d.ts +0 -222
- package/build/types-ts3.8/spanStatus.d.ts +0 -59
- package/build/types-ts3.8/stackframe.d.ts +0 -22
- package/build/types-ts3.8/stacktrace.d.ts +0 -16
- package/build/types-ts3.8/startSpanOptions.d.ts +0 -46
- package/build/types-ts3.8/thread.d.ts +0 -10
- package/build/types-ts3.8/timedEvent.d.ts +0 -7
- package/build/types-ts3.8/tracing.d.ts +0 -51
- package/build/types-ts3.8/transaction.d.ts +0 -35
- package/build/types-ts3.8/transport.d.ts +0 -32
- package/build/types-ts3.8/user.d.ts +0 -17
- package/build/types-ts3.8/view-hierarchy.d.ts +0 -18
- package/build/types-ts3.8/webfetchapi.d.ts +0 -15
- package/build/types-ts3.8/wrappedfunction.d.ts +0 -7
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
type SpanStatusType =
|
|
2
|
-
/** The operation completed successfully. */
|
|
3
|
-
'ok'
|
|
4
|
-
/** Deadline expired before operation could complete. */
|
|
5
|
-
| 'deadline_exceeded'
|
|
6
|
-
/** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */
|
|
7
|
-
| 'unauthenticated'
|
|
8
|
-
/** 403 Forbidden */
|
|
9
|
-
| 'permission_denied'
|
|
10
|
-
/** 404 Not Found. Some requested entity (file or directory) was not found. */
|
|
11
|
-
| 'not_found'
|
|
12
|
-
/** 429 Too Many Requests */
|
|
13
|
-
| 'resource_exhausted'
|
|
14
|
-
/** Client specified an invalid argument. 4xx. */
|
|
15
|
-
| 'invalid_argument'
|
|
16
|
-
/** 501 Not Implemented */
|
|
17
|
-
| 'unimplemented'
|
|
18
|
-
/** 503 Service Unavailable */
|
|
19
|
-
| 'unavailable'
|
|
20
|
-
/** Other/generic 5xx. */
|
|
21
|
-
| 'internal_error'
|
|
22
|
-
/** Unknown. Any non-standard HTTP status code. */
|
|
23
|
-
| 'unknown_error'
|
|
24
|
-
/** The operation was cancelled (typically by the user). */
|
|
25
|
-
| 'cancelled'
|
|
26
|
-
/** Already exists (409) */
|
|
27
|
-
| 'already_exists'
|
|
28
|
-
/** Operation was rejected because the system is not in a state required for the operation's */
|
|
29
|
-
| 'failed_precondition'
|
|
30
|
-
/** The operation was aborted, typically due to a concurrency issue. */
|
|
31
|
-
| 'aborted'
|
|
32
|
-
/** Operation was attempted past the valid range. */
|
|
33
|
-
| 'out_of_range'
|
|
34
|
-
/** Unrecoverable data loss or corruption */
|
|
35
|
-
| 'data_loss';
|
|
36
|
-
declare const SPAN_STATUS_UNSET = 0;
|
|
37
|
-
declare const SPAN_STATUS_OK = 1;
|
|
38
|
-
declare const SPAN_STATUS_ERROR = 2;
|
|
39
|
-
/** The status code of a span. */
|
|
40
|
-
export type SpanStatusCode = typeof SPAN_STATUS_UNSET | typeof SPAN_STATUS_OK | typeof SPAN_STATUS_ERROR;
|
|
41
|
-
/**
|
|
42
|
-
* The status of a span.
|
|
43
|
-
* This can optionally contain a human-readable message.
|
|
44
|
-
*/
|
|
45
|
-
export interface SpanStatus {
|
|
46
|
-
/**
|
|
47
|
-
* The status code of this message.
|
|
48
|
-
* 0 = UNSET
|
|
49
|
-
* 1 = OK
|
|
50
|
-
* 2 = ERROR
|
|
51
|
-
*/
|
|
52
|
-
code: SpanStatusCode;
|
|
53
|
-
/**
|
|
54
|
-
* A developer-facing error message.
|
|
55
|
-
*/
|
|
56
|
-
message?: SpanStatusType | string;
|
|
57
|
-
}
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=spanStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spanStatus.d.ts","sourceRoot":"","sources":["../../src/spanStatus.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc;AACjB,4CAA4C;AAC1C,IAAI;AACN,wDAAwD;GACtD,mBAAmB;AACrB,kFAAkF;GAChF,iBAAiB;AACnB,oBAAoB;GAClB,mBAAmB;AACrB,8EAA8E;GAC5E,WAAW;AACb,4BAA4B;GAC1B,oBAAoB;AACtB,iDAAiD;GAC/C,kBAAkB;AACpB,0BAA0B;GACxB,eAAe;AACjB,8BAA8B;GAC5B,aAAa;AACf,yBAAyB;GACvB,gBAAgB;AAClB,kDAAkD;GAChD,eAAe;AACjB,2DAA2D;GACzD,WAAW;AACb,2BAA2B;GACzB,gBAAgB;AAClB,+FAA+F;GAC7F,qBAAqB;AACvB,uEAAuE;GACrE,SAAS;AACX,oDAAoD;GAClD,cAAc;AAChB,4CAA4C;GAC1C,WAAW,CAAC;AAGhB,QAAA,MAAM,iBAAiB,IAAI,CAAC;AAC5B,QAAA,MAAM,cAAc,IAAI,CAAC;AACzB,QAAA,MAAM,iBAAiB,IAAI,CAAC;AAC5B,iCAAiC;AACjC,MAAM,MAAM,cAAc,GAAG,OAAO,iBAAiB,GAAG,OAAO,cAAc,GAAG,OAAO,iBAAiB,CAAC;AAEzG;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,EAAE,cAAc,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;CACnC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** JSDoc */
|
|
2
|
-
export interface StackFrame {
|
|
3
|
-
filename?: string;
|
|
4
|
-
function?: string;
|
|
5
|
-
module?: string;
|
|
6
|
-
platform?: string;
|
|
7
|
-
lineno?: number;
|
|
8
|
-
colno?: number;
|
|
9
|
-
abs_path?: string;
|
|
10
|
-
context_line?: string;
|
|
11
|
-
pre_context?: string[];
|
|
12
|
-
post_context?: string[];
|
|
13
|
-
in_app?: boolean;
|
|
14
|
-
instruction_addr?: string;
|
|
15
|
-
addr_mode?: string;
|
|
16
|
-
vars?: {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
debug_id?: string;
|
|
20
|
-
module_metadata?: any;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=stackframe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stackframe.d.ts","sourceRoot":"","sources":["../../src/stackframe.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StackFrame } from './stackframe';
|
|
2
|
-
/** JSDoc */
|
|
3
|
-
export interface Stacktrace {
|
|
4
|
-
frames?: StackFrame[];
|
|
5
|
-
frames_omitted?: [number, number];
|
|
6
|
-
}
|
|
7
|
-
export type StackParser = (stack: string, skipFirstLines?: number, framesToPop?: number) => StackFrame[];
|
|
8
|
-
export type StackLineParserFn = (line: string) => StackFrame | undefined;
|
|
9
|
-
export type StackLineParser = [number, StackLineParserFn];
|
|
10
|
-
//# sourceMappingURL=stacktrace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stacktrace.d.ts","sourceRoot":"","sources":["../../src/stacktrace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,YAAY;AACZ,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,UAAU,EAAE,CAAC;AACzG,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,GAAG,SAAS,CAAC;AACzE,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Scope } from './scope';
|
|
2
|
-
import type { Span, SpanAttributes, SpanTimeInput } from './span';
|
|
3
|
-
export interface StartSpanOptions {
|
|
4
|
-
/** A manually specified start time for the created `Span` object. */
|
|
5
|
-
startTime?: SpanTimeInput;
|
|
6
|
-
/** If defined, start this span off this scope instead off the current scope. */
|
|
7
|
-
scope?: Scope;
|
|
8
|
-
/** The name of the span. */
|
|
9
|
-
name: string;
|
|
10
|
-
/** If set to true, only start a span if a parent span exists. */
|
|
11
|
-
onlyIfParent?: boolean;
|
|
12
|
-
/** An op for the span. This is a categorization for spans. */
|
|
13
|
-
op?: string;
|
|
14
|
-
/**
|
|
15
|
-
* If provided, make the new span a child of this span.
|
|
16
|
-
* If this is not provided, the new span will be a child of the currently active span.
|
|
17
|
-
* If this is set to `null`, the new span will have no parent span.
|
|
18
|
-
*/
|
|
19
|
-
parentSpan?: Span | null;
|
|
20
|
-
/**
|
|
21
|
-
* If set to true, this span will be forced to be treated as a transaction in the Sentry UI, if possible and applicable.
|
|
22
|
-
* Note that it is up to the SDK to decide how exactly the span will be sent, which may change in future SDK versions.
|
|
23
|
-
* It is not guaranteed that a span started with this flag set to `true` will be sent as a transaction.
|
|
24
|
-
*/
|
|
25
|
-
forceTransaction?: boolean;
|
|
26
|
-
/** Attributes for the span. */
|
|
27
|
-
attributes?: SpanAttributes;
|
|
28
|
-
/**
|
|
29
|
-
* Experimental options without any stability guarantees. Use with caution!
|
|
30
|
-
*/
|
|
31
|
-
experimental?: {
|
|
32
|
-
/**
|
|
33
|
-
* If set to true, always start a standalone span which will be sent as a
|
|
34
|
-
* standalone segment span envelope instead of a transaction envelope.
|
|
35
|
-
*
|
|
36
|
-
* @internal this option is currently experimental and should only be
|
|
37
|
-
* used within SDK code. It might be removed or changed in the future.
|
|
38
|
-
* The payload ("envelope") of the resulting request sending the span to
|
|
39
|
-
* Sentry might change at any time.
|
|
40
|
-
*
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
standalone?: boolean;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=startSpanOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"startSpanOptions.d.ts","sourceRoot":"","sources":["../../src/startSpanOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,iEAAiE;IACjE,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;;;;;;;;;WAUG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH"}
|
package/build/types/thread.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,YAAY;AACZ,MAAM,WAAW,MAAM;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timedEvent.d.ts","sourceRoot":"","sources":["../../src/timedEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B"}
|
package/build/types/tracing.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { DynamicSamplingContext } from './envelope';
|
|
2
|
-
export type TracePropagationTargets = (string | RegExp)[];
|
|
3
|
-
/**
|
|
4
|
-
* `PropagationContext` represents the data from an incoming trace. It should be constructed from incoming trace data,
|
|
5
|
-
* usually represented by `sentry-trace` and `baggage` HTTP headers.
|
|
6
|
-
*
|
|
7
|
-
* There is always a propagation context present in the SDK (or rather on Scopes), holding at least a `traceId`. This is
|
|
8
|
-
* to ensure that there is always a trace we can attach events onto, even if performance monitoring is disabled. If
|
|
9
|
-
* there was no incoming `traceId`, the `traceId` will be generated by the current SDK.
|
|
10
|
-
*/
|
|
11
|
-
export interface PropagationContext {
|
|
12
|
-
/**
|
|
13
|
-
* Either represents the incoming `traceId` or the `traceId` generated by the current SDK, if there was no incoming trace.
|
|
14
|
-
*/
|
|
15
|
-
traceId: string;
|
|
16
|
-
/**
|
|
17
|
-
* Represents the execution context of the current SDK. This acts as a fallback value to associate events with a
|
|
18
|
-
* particular execution context when performance monitoring is disabled.
|
|
19
|
-
*
|
|
20
|
-
* The ID of a current span (if one exists) should have precedence over this value when propagating trace data.
|
|
21
|
-
*/
|
|
22
|
-
spanId: string;
|
|
23
|
-
/**
|
|
24
|
-
* Represents the sampling decision of the incoming trace.
|
|
25
|
-
*
|
|
26
|
-
* The current SDK should not modify this value!
|
|
27
|
-
*/
|
|
28
|
-
sampled?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The `parentSpanId` denotes the ID of the incoming client span. If there is no `parentSpanId` on the propagation
|
|
31
|
-
* context, it means that the the incoming trace didn't come from a span.
|
|
32
|
-
*
|
|
33
|
-
* The current SDK should not modify this value!
|
|
34
|
-
*/
|
|
35
|
-
parentSpanId?: string;
|
|
36
|
-
/**
|
|
37
|
-
* An undefined dsc in the propagation context means that the current SDK invocation is the head of trace and still free to modify and set the DSC for outgoing requests.
|
|
38
|
-
*
|
|
39
|
-
* The current SDK should not modify this value!
|
|
40
|
-
*/
|
|
41
|
-
dsc?: Partial<DynamicSamplingContext>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* An object holding trace data, like span and trace ids, sampling decision, and dynamic sampling context
|
|
45
|
-
* in a serialized form. Both keys are expected to be used as Http headers or Html meta tags.
|
|
46
|
-
*/
|
|
47
|
-
export interface SerializedTraceData {
|
|
48
|
-
'sentry-trace'?: string;
|
|
49
|
-
baggage?: string;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=tracing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data pulled from a `sentry-trace` header
|
|
3
|
-
*/
|
|
4
|
-
export 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
|
-
*/
|
|
22
|
-
export 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB;AAC3B,wBAAwB;AACtB,QAAQ;AACV,kDAAkD;GAChD,KAAK;AACP,+BAA+B;GAC7B,OAAO;AACT,4CAA4C;GAC1C,MAAM;AACR,0EAA0E;GACxE,WAAW;AACb,qDAAqD;GACnD,MAAM,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Client } from './client';
|
|
2
|
-
import type { Envelope } from './envelope';
|
|
3
|
-
export type TransportRequest = {
|
|
4
|
-
body: string | Uint8Array;
|
|
5
|
-
};
|
|
6
|
-
export type TransportMakeRequestResponse = {
|
|
7
|
-
statusCode?: number;
|
|
8
|
-
headers?: {
|
|
9
|
-
[key: string]: string | null;
|
|
10
|
-
'x-sentry-rate-limits': string | null;
|
|
11
|
-
'retry-after': string | null;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export interface InternalBaseTransportOptions {
|
|
15
|
-
/**
|
|
16
|
-
* @ignore
|
|
17
|
-
* Users should pass the tunnel property via the init/client options.
|
|
18
|
-
* This is only used by the SDK to pass the tunnel to the transport.
|
|
19
|
-
*/
|
|
20
|
-
tunnel?: string;
|
|
21
|
-
bufferSize?: number;
|
|
22
|
-
recordDroppedEvent: Client['recordDroppedEvent'];
|
|
23
|
-
}
|
|
24
|
-
export interface BaseTransportOptions extends InternalBaseTransportOptions {
|
|
25
|
-
url: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Transport {
|
|
28
|
-
send(request: Envelope): PromiseLike<TransportMakeRequestResponse>;
|
|
29
|
-
flush(timeout?: number): PromiseLike<boolean>;
|
|
30
|
-
}
|
|
31
|
-
export type TransportRequestExecutor = (request: TransportRequest) => PromiseLike<TransportMakeRequestResponse>;
|
|
32
|
-
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;QAC7B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;QACtC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,oBAAqB,SAAQ,4BAA4B;IAIxE,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,WAAW,CAAC,4BAA4B,CAAC,CAAC;IACnE,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,WAAW,CAAC,4BAA4B,CAAC,CAAC"}
|
package/build/types/user.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An interface describing a user of an application or a handled request.
|
|
3
|
-
*/
|
|
4
|
-
export interface User {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
id?: string | number;
|
|
7
|
-
ip_address?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
username?: string;
|
|
10
|
-
geo?: GeoLocation;
|
|
11
|
-
}
|
|
12
|
-
export interface GeoLocation {
|
|
13
|
-
country_code?: string;
|
|
14
|
-
region?: string;
|
|
15
|
-
city?: string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type ViewHierarchyWindow = {
|
|
2
|
-
alpha: number;
|
|
3
|
-
height: number;
|
|
4
|
-
type: string;
|
|
5
|
-
visible: boolean;
|
|
6
|
-
width: number;
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
z?: number;
|
|
10
|
-
children?: ViewHierarchyWindow[];
|
|
11
|
-
depth?: number;
|
|
12
|
-
identifier?: string;
|
|
13
|
-
} & Record<string, string | number | boolean>;
|
|
14
|
-
export type ViewHierarchyData = {
|
|
15
|
-
rendering_system: string;
|
|
16
|
-
windows: ViewHierarchyWindow[];
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=view-hierarchy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view-hierarchy.d.ts","sourceRoot":"","sources":["../../src/view-hierarchy.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface WebFetchHeaders {
|
|
2
|
-
append(name: string, value: string): void;
|
|
3
|
-
delete(name: string): void;
|
|
4
|
-
get(name: string): string | null;
|
|
5
|
-
has(name: string): boolean;
|
|
6
|
-
set(name: string, value: string): void;
|
|
7
|
-
forEach(callbackfn: (value: string, key: string, parent: WebFetchHeaders) => void): void;
|
|
8
|
-
}
|
|
9
|
-
export interface WebFetchRequest {
|
|
10
|
-
readonly headers: WebFetchHeaders;
|
|
11
|
-
readonly method: string;
|
|
12
|
-
readonly url: string;
|
|
13
|
-
clone(): WebFetchRequest;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=webfetchapi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webfetchapi.d.ts","sourceRoot":"","sources":["../../src/webfetchapi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,GAAG,IAAI,CAAC;CAC1F;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,KAAK,IAAI,eAAe,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wrappedfunction.d.ts","sourceRoot":"","sources":["../../src/wrappedfunction.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,kBAAkB,CAAC,EAAE,eAAe,CAAC;IACrC,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type AttachmentType = 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs' | 'event.view_hierarchy';
|
|
2
|
-
/**
|
|
3
|
-
* An attachment to an event. This is used to upload arbitrary data to Sentry.
|
|
4
|
-
*
|
|
5
|
-
* Please take care to not add sensitive information in attachments.
|
|
6
|
-
*
|
|
7
|
-
* https://develop.sentry.dev/sdk/envelopes/#attachment
|
|
8
|
-
*/
|
|
9
|
-
export interface Attachment {
|
|
10
|
-
/**
|
|
11
|
-
* The attachment data. Can be a string or a binary data (byte array)
|
|
12
|
-
*/
|
|
13
|
-
data: string | Uint8Array;
|
|
14
|
-
/**
|
|
15
|
-
* The name of the uploaded file without a path component
|
|
16
|
-
*/
|
|
17
|
-
filename: string;
|
|
18
|
-
/**
|
|
19
|
-
* The content type of the attachment payload. Defaults to `application/octet-stream` if not specified.
|
|
20
|
-
*
|
|
21
|
-
* Any valid [media type](https://www.iana.org/assignments/media-types/media-types.xhtml) is allowed.
|
|
22
|
-
*/
|
|
23
|
-
contentType?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The type of the attachment. Defaults to `event.attachment` if not specified.
|
|
26
|
-
*/
|
|
27
|
-
attachmentType?: AttachmentType;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { SeverityLevel } from './severity';
|
|
2
|
-
/**
|
|
3
|
-
* Sentry uses breadcrumbs to create a trail of events that happened prior to an issue.
|
|
4
|
-
* These events are very similar to traditional logs but can record more rich structured data.
|
|
5
|
-
*
|
|
6
|
-
* @link https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/
|
|
7
|
-
*/
|
|
8
|
-
export interface Breadcrumb {
|
|
9
|
-
/**
|
|
10
|
-
* By default, all breadcrumbs are recorded as default, which makes them appear as a Debug entry, but Sentry provides
|
|
11
|
-
* other types that influence how the breadcrumbs are rendered. For more information, see the description of
|
|
12
|
-
* recognized breadcrumb types.
|
|
13
|
-
*
|
|
14
|
-
* @summary The type of breadcrumb.
|
|
15
|
-
* @link https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/#breadcrumb-types
|
|
16
|
-
*/
|
|
17
|
-
type?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Allowed values are, from highest to lowest:
|
|
20
|
-
* `fatal`, `error`, `warning`, `info`, and `debug`.
|
|
21
|
-
* Levels are used in the UI to emphasize and deemphasize the crumb. The default is `info`.
|
|
22
|
-
*
|
|
23
|
-
* @summary This defines the severity level of the breadcrumb.
|
|
24
|
-
*/
|
|
25
|
-
level?: SeverityLevel;
|
|
26
|
-
event_id?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Typically it is a module name or a descriptive string. For instance, `ui.click` could be used to
|
|
29
|
-
* indicate that a click happened in the UI or flask could be used to indicate that the event originated in
|
|
30
|
-
* the Flask framework.
|
|
31
|
-
* @private Internally we render some crumbs' color and icon based on the provided category.
|
|
32
|
-
* For more information, see the description of recognized breadcrumb types.
|
|
33
|
-
* @summary A dotted string indicating what the crumb is or from where it comes.
|
|
34
|
-
* @link https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/#breadcrumb-types
|
|
35
|
-
*/
|
|
36
|
-
category?: string;
|
|
37
|
-
/**
|
|
38
|
-
* If a message is provided, it is rendered as text with all whitespace preserved.
|
|
39
|
-
*
|
|
40
|
-
* @summary Human-readable message for the breadcrumb.
|
|
41
|
-
*/
|
|
42
|
-
message?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Contains a dictionary whose contents depend on the breadcrumb type.
|
|
45
|
-
* Additional parameters that are unsupported by the type are rendered as a key/value table.
|
|
46
|
-
*
|
|
47
|
-
* @summary Arbitrary data associated with this breadcrumb.
|
|
48
|
-
*/
|
|
49
|
-
data?: {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* The format is a numeric (integer or float) value representing
|
|
54
|
-
* the number of seconds that have elapsed since the Unixepoch.
|
|
55
|
-
* Breadcrumbs are most useful when they include a timestamp, as it creates a timeline
|
|
56
|
-
* leading up to an event expection/error.
|
|
57
|
-
*
|
|
58
|
-
* @note The API supports a string as defined in RFC 3339, but the SDKs only support a numeric value for now.
|
|
59
|
-
*
|
|
60
|
-
* @summary A timestamp representing when the breadcrumb occurred.
|
|
61
|
-
* @link https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/#:~:text=is%20info.-,timestamp,-(recommended)
|
|
62
|
-
*/
|
|
63
|
-
timestamp?: number;
|
|
64
|
-
}
|
|
65
|
-
/** JSDoc */
|
|
66
|
-
export interface BreadcrumbHint {
|
|
67
|
-
[key: string]: any;
|
|
68
|
-
}
|
|
69
|
-
export interface FetchBreadcrumbData {
|
|
70
|
-
method: string;
|
|
71
|
-
url: string;
|
|
72
|
-
status_code?: number;
|
|
73
|
-
request_body_size?: number;
|
|
74
|
-
response_body_size?: number;
|
|
75
|
-
}
|
|
76
|
-
export interface XhrBreadcrumbData {
|
|
77
|
-
method?: string;
|
|
78
|
-
url?: string;
|
|
79
|
-
status_code?: number;
|
|
80
|
-
request_body_size?: number;
|
|
81
|
-
response_body_size?: number;
|
|
82
|
-
}
|
|
83
|
-
export interface FetchBreadcrumbHint {
|
|
84
|
-
input: any[];
|
|
85
|
-
data?: unknown;
|
|
86
|
-
response?: unknown;
|
|
87
|
-
startTimestamp: number;
|
|
88
|
-
endTimestamp: number;
|
|
89
|
-
}
|
|
90
|
-
export interface XhrBreadcrumbHint {
|
|
91
|
-
xhr: unknown;
|
|
92
|
-
input: unknown;
|
|
93
|
-
startTimestamp: number;
|
|
94
|
-
endTimestamp: number;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options added to the Browser SDK's init options that are specific for Replay.
|
|
3
|
-
* Note: This type was moved to @sentry/types to avoid a circular dependency between Browser and Replay.
|
|
4
|
-
*/
|
|
5
|
-
export type BrowserClientReplayOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* The sample rate for session-long replays.
|
|
8
|
-
* 1.0 will record all sessions and 0 will record none.
|
|
9
|
-
*/
|
|
10
|
-
replaysSessionSampleRate?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The sample rate for sessions that has had an error occur.
|
|
13
|
-
* This is independent of `sessionSampleRate`.
|
|
14
|
-
* 1.0 will record all sessions and 0 will record none.
|
|
15
|
-
*/
|
|
16
|
-
replaysOnErrorSampleRate?: number;
|
|
17
|
-
};
|
|
18
|
-
export type BrowserClientProfilingOptions = {
|
|
19
|
-
/**
|
|
20
|
-
* The sample rate for profiling
|
|
21
|
-
* 1.0 will profile all transactions and 0 will profile none.
|
|
22
|
-
*/
|
|
23
|
-
profilesSampleRate?: number;
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=browseroptions.d.ts.map
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { TraceContext } from './context';
|
|
2
|
-
interface CrontabSchedule {
|
|
3
|
-
type: 'crontab';
|
|
4
|
-
/** The crontab schedule string, e.g. 0 * * * *. */
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
interface IntervalSchedule {
|
|
8
|
-
type: 'interval';
|
|
9
|
-
value: number;
|
|
10
|
-
unit: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
11
|
-
}
|
|
12
|
-
type MonitorSchedule = CrontabSchedule | IntervalSchedule;
|
|
13
|
-
export interface SerializedCheckIn {
|
|
14
|
-
/** Check-In ID (unique and client generated). */
|
|
15
|
-
check_in_id: string;
|
|
16
|
-
/** The distinct slug of the monitor. */
|
|
17
|
-
monitor_slug: string;
|
|
18
|
-
/** The status of the check-in. */
|
|
19
|
-
status: 'in_progress' | 'ok' | 'error';
|
|
20
|
-
/** The duration of the check-in in seconds. Will only take effect if the status is ok or error. */
|
|
21
|
-
duration?: number;
|
|
22
|
-
release?: string;
|
|
23
|
-
environment?: string;
|
|
24
|
-
monitor_config?: {
|
|
25
|
-
schedule: MonitorSchedule;
|
|
26
|
-
/**
|
|
27
|
-
* The allowed allowed margin of minutes after the expected check-in time that
|
|
28
|
-
* the monitor will not be considered missed for.
|
|
29
|
-
*/
|
|
30
|
-
checkin_margin?: number;
|
|
31
|
-
/**
|
|
32
|
-
* The allowed allowed duration in minutes that the monitor may be `in_progress`
|
|
33
|
-
* for before being considered failed due to timeout.
|
|
34
|
-
*/
|
|
35
|
-
max_runtime?: number;
|
|
36
|
-
/**
|
|
37
|
-
* A tz database string representing the timezone which the monitor's execution schedule is in.
|
|
38
|
-
* See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
39
|
-
*/
|
|
40
|
-
timezone?: string;
|
|
41
|
-
/** How many consecutive failed check-ins it takes to create an issue. */
|
|
42
|
-
failure_issue_threshold?: number;
|
|
43
|
-
/** How many consecutive OK check-ins it takes to resolve an issue. */
|
|
44
|
-
recovery_threshold?: number;
|
|
45
|
-
};
|
|
46
|
-
contexts?: {
|
|
47
|
-
trace?: TraceContext;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export interface HeartbeatCheckIn {
|
|
51
|
-
/** The distinct slug of the monitor. */
|
|
52
|
-
monitorSlug: SerializedCheckIn['monitor_slug'];
|
|
53
|
-
/** The status of the check-in. */
|
|
54
|
-
status: 'ok' | 'error';
|
|
55
|
-
}
|
|
56
|
-
export interface InProgressCheckIn {
|
|
57
|
-
/** The distinct slug of the monitor. */
|
|
58
|
-
monitorSlug: SerializedCheckIn['monitor_slug'];
|
|
59
|
-
/** The status of the check-in. */
|
|
60
|
-
status: 'in_progress';
|
|
61
|
-
}
|
|
62
|
-
export interface FinishedCheckIn {
|
|
63
|
-
/** The distinct slug of the monitor. */
|
|
64
|
-
monitorSlug: SerializedCheckIn['monitor_slug'];
|
|
65
|
-
/** The status of the check-in. */
|
|
66
|
-
status: 'ok' | 'error';
|
|
67
|
-
/** Check-In ID (unique and client generated). */
|
|
68
|
-
checkInId: SerializedCheckIn['check_in_id'];
|
|
69
|
-
/** The duration of the check-in in seconds. Will only take effect if the status is ok or error. */
|
|
70
|
-
duration?: SerializedCheckIn['duration'];
|
|
71
|
-
}
|
|
72
|
-
export type CheckIn = HeartbeatCheckIn | InProgressCheckIn | FinishedCheckIn;
|
|
73
|
-
type SerializedMonitorConfig = NonNullable<SerializedCheckIn['monitor_config']>;
|
|
74
|
-
export interface MonitorConfig {
|
|
75
|
-
/**
|
|
76
|
-
* The schedule on which the monitor should run. Either a crontab schedule string or an interval.
|
|
77
|
-
*/
|
|
78
|
-
schedule: MonitorSchedule;
|
|
79
|
-
/**
|
|
80
|
-
* The allowed allowed margin of minutes after the expected check-in time that
|
|
81
|
-
* the monitor will not be considered missed for.
|
|
82
|
-
*/
|
|
83
|
-
checkinMargin?: SerializedMonitorConfig['checkin_margin'];
|
|
84
|
-
/**
|
|
85
|
-
* The allowed allowed duration in minutes that the monitor may be `in_progress`
|
|
86
|
-
* for before being considered failed due to timeout.
|
|
87
|
-
*/
|
|
88
|
-
maxRuntime?: SerializedMonitorConfig['max_runtime'];
|
|
89
|
-
/**
|
|
90
|
-
* A tz database string representing the timezone which the monitor's execution schedule is in.
|
|
91
|
-
* See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
92
|
-
*/
|
|
93
|
-
timezone?: SerializedMonitorConfig['timezone'];
|
|
94
|
-
/** How many consecutive failed check-ins it takes to create an issue. */
|
|
95
|
-
failureIssueThreshold?: SerializedMonitorConfig['failure_issue_threshold'];
|
|
96
|
-
/** How many consecutive OK check-ins it takes to resolve an issue. */
|
|
97
|
-
recoveryThreshold?: SerializedMonitorConfig['recovery_threshold'];
|
|
98
|
-
}
|
|
99
|
-
export {};
|
|
100
|
-
//# sourceMappingURL=checkin.d.ts.map
|