@sentry/profiling-node 8.10.0 → 8.12.0-beta.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/bindings/cpu_profiler.cc +5 -3
- package/lib/cjs/index.js +2 -662
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +2 -662
- package/lib/esm/index.js.map +1 -1
- package/lib/sentry_cpu_profiler-darwin-arm64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-93.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-93.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-93.node +0 -0
- package/lib/types/cpu_profiler.d.ts.map +1 -0
- package/lib/types/debug-build.d.ts.map +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/integration.d.ts.map +1 -0
- package/lib/types/nodeVersion.d.ts.map +1 -0
- package/lib/types/spanProfileUtils.d.ts.map +1 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/utils.d.ts.map +1 -0
- package/package.json +5 -5
- package/lib/types/core/src/asyncContext/index.d.ts +0 -14
- package/lib/types/core/src/asyncContext/index.d.ts.map +0 -1
- package/lib/types/core/src/asyncContext/stackStrategy.d.ts +0 -52
- package/lib/types/core/src/asyncContext/stackStrategy.d.ts.map +0 -1
- package/lib/types/core/src/asyncContext/types.d.ts +0 -47
- package/lib/types/core/src/asyncContext/types.d.ts.map +0 -1
- package/lib/types/core/src/carrier.d.ts +0 -37
- package/lib/types/core/src/carrier.d.ts.map +0 -1
- package/lib/types/core/src/constants.d.ts +0 -2
- package/lib/types/core/src/constants.d.ts.map +0 -1
- package/lib/types/core/src/currentScopes.d.ts +0 -55
- package/lib/types/core/src/currentScopes.d.ts.map +0 -1
- package/lib/types/core/src/debug-build.d.ts.map +0 -1
- package/lib/types/core/src/defaultScopes.d.ts +0 -6
- package/lib/types/core/src/defaultScopes.d.ts.map +0 -1
- package/lib/types/core/src/envelope.d.ts +0 -15
- package/lib/types/core/src/envelope.d.ts.map +0 -1
- package/lib/types/core/src/metrics/constants.d.ts +0 -19
- package/lib/types/core/src/metrics/constants.d.ts.map +0 -1
- package/lib/types/core/src/metrics/metric-summary.d.ts +0 -13
- package/lib/types/core/src/metrics/metric-summary.d.ts.map +0 -1
- package/lib/types/core/src/metrics/types.d.ts +0 -5
- package/lib/types/core/src/metrics/types.d.ts.map +0 -1
- package/lib/types/core/src/scope.d.ts +0 -211
- package/lib/types/core/src/scope.d.ts.map +0 -1
- package/lib/types/core/src/semanticAttributes.d.ts +0 -33
- package/lib/types/core/src/semanticAttributes.d.ts.map +0 -1
- package/lib/types/core/src/session.d.ts +0 -35
- package/lib/types/core/src/session.d.ts.map +0 -1
- package/lib/types/core/src/tracing/dynamicSamplingContext.d.ts +0 -24
- package/lib/types/core/src/tracing/dynamicSamplingContext.d.ts.map +0 -1
- package/lib/types/core/src/tracing/logSpans.d.ts +0 -10
- package/lib/types/core/src/tracing/logSpans.d.ts.map +0 -1
- package/lib/types/core/src/tracing/measurement.d.ts +0 -10
- package/lib/types/core/src/tracing/measurement.d.ts.map +0 -1
- package/lib/types/core/src/tracing/sampling.d.ts +0 -9
- package/lib/types/core/src/tracing/sampling.d.ts.map +0 -1
- package/lib/types/core/src/tracing/sentryNonRecordingSpan.d.ts +0 -26
- package/lib/types/core/src/tracing/sentryNonRecordingSpan.d.ts.map +0 -1
- package/lib/types/core/src/tracing/sentrySpan.d.ts +0 -86
- package/lib/types/core/src/tracing/sentrySpan.d.ts.map +0 -1
- package/lib/types/core/src/tracing/spanstatus.d.ts +0 -17
- package/lib/types/core/src/tracing/spanstatus.d.ts.map +0 -1
- package/lib/types/core/src/tracing/trace.d.ts +0 -76
- package/lib/types/core/src/tracing/trace.d.ts.map +0 -1
- package/lib/types/core/src/tracing/utils.d.ts +0 -13
- package/lib/types/core/src/tracing/utils.d.ts.map +0 -1
- package/lib/types/core/src/utils/handleCallbackErrors.d.ts +0 -13
- package/lib/types/core/src/utils/handleCallbackErrors.d.ts.map +0 -1
- package/lib/types/core/src/utils/hasTracingEnabled.d.ts +0 -8
- package/lib/types/core/src/utils/hasTracingEnabled.d.ts.map +0 -1
- package/lib/types/core/src/utils/parseSampleRate.d.ts +0 -9
- package/lib/types/core/src/utils/parseSampleRate.d.ts.map +0 -1
- package/lib/types/core/src/utils/spanOnScope.d.ts +0 -17
- package/lib/types/core/src/utils/spanOnScope.d.ts.map +0 -1
- package/lib/types/core/src/utils/spanUtils.d.ts +0 -74
- package/lib/types/core/src/utils/spanUtils.d.ts.map +0 -1
- package/lib/types/profiling-node/src/cpu_profiler.d.ts.map +0 -1
- package/lib/types/profiling-node/src/debug-build.d.ts +0 -7
- package/lib/types/profiling-node/src/debug-build.d.ts.map +0 -1
- package/lib/types/profiling-node/src/index.d.ts.map +0 -1
- package/lib/types/profiling-node/src/integration.d.ts.map +0 -1
- package/lib/types/profiling-node/src/nodeVersion.d.ts.map +0 -1
- package/lib/types/profiling-node/src/spanProfileUtils.d.ts.map +0 -1
- package/lib/types/profiling-node/src/types.d.ts.map +0 -1
- package/lib/types/profiling-node/src/utils.d.ts.map +0 -1
- package/lib/types-ts3.8/core/src/asyncContext/index.d.ts +0 -14
- package/lib/types-ts3.8/core/src/asyncContext/stackStrategy.d.ts +0 -52
- package/lib/types-ts3.8/core/src/asyncContext/types.d.ts +0 -47
- package/lib/types-ts3.8/core/src/carrier.d.ts +0 -37
- package/lib/types-ts3.8/core/src/constants.d.ts +0 -2
- package/lib/types-ts3.8/core/src/currentScopes.d.ts +0 -55
- package/lib/types-ts3.8/core/src/defaultScopes.d.ts +0 -6
- package/lib/types-ts3.8/core/src/envelope.d.ts +0 -18
- package/lib/types-ts3.8/core/src/metrics/constants.d.ts +0 -19
- package/lib/types-ts3.8/core/src/metrics/metric-summary.d.ts +0 -13
- package/lib/types-ts3.8/core/src/metrics/types.d.ts +0 -5
- package/lib/types-ts3.8/core/src/scope.d.ts +0 -211
- package/lib/types-ts3.8/core/src/semanticAttributes.d.ts +0 -33
- package/lib/types-ts3.8/core/src/session.d.ts +0 -35
- package/lib/types-ts3.8/core/src/tracing/dynamicSamplingContext.d.ts +0 -24
- package/lib/types-ts3.8/core/src/tracing/logSpans.d.ts +0 -10
- package/lib/types-ts3.8/core/src/tracing/measurement.d.ts +0 -10
- package/lib/types-ts3.8/core/src/tracing/sampling.d.ts +0 -12
- package/lib/types-ts3.8/core/src/tracing/sentryNonRecordingSpan.d.ts +0 -26
- package/lib/types-ts3.8/core/src/tracing/sentrySpan.d.ts +0 -86
- package/lib/types-ts3.8/core/src/tracing/spanstatus.d.ts +0 -17
- package/lib/types-ts3.8/core/src/tracing/trace.d.ts +0 -76
- package/lib/types-ts3.8/core/src/tracing/utils.d.ts +0 -13
- package/lib/types-ts3.8/core/src/utils/handleCallbackErrors.d.ts +0 -13
- package/lib/types-ts3.8/core/src/utils/hasTracingEnabled.d.ts +0 -8
- package/lib/types-ts3.8/core/src/utils/parseSampleRate.d.ts +0 -9
- package/lib/types-ts3.8/core/src/utils/spanOnScope.d.ts +0 -17
- package/lib/types-ts3.8/core/src/utils/spanUtils.d.ts +0 -74
- package/lib/types-ts3.8/profiling-node/src/debug-build.d.ts +0 -7
- /package/lib/types/{profiling-node/src/cpu_profiler.d.ts → cpu_profiler.d.ts} +0 -0
- /package/lib/types/{core/src/debug-build.d.ts → debug-build.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/index.d.ts → index.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/integration.d.ts → integration.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/nodeVersion.d.ts → nodeVersion.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/spanProfileUtils.d.ts → spanProfileUtils.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/types.d.ts → types.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/utils.d.ts → utils.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/cpu_profiler.d.ts → cpu_profiler.d.ts} +0 -0
- /package/lib/types-ts3.8/{core/src/debug-build.d.ts → debug-build.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/index.d.ts → index.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/integration.d.ts → integration.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/nodeVersion.d.ts → nodeVersion.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/spanProfileUtils.d.ts → spanProfileUtils.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/types.d.ts → types.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/utils.d.ts → utils.d.ts} +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanJSON, SpanStatus, SpanTimeInput, TimedEvent } from '@sentry/types';
|
|
2
|
-
/**
|
|
3
|
-
* Span contains all data about a span
|
|
4
|
-
*/
|
|
5
|
-
export declare class SentrySpan implements Span {
|
|
6
|
-
protected _traceId: string;
|
|
7
|
-
protected _spanId: string;
|
|
8
|
-
protected _parentSpanId?: string | undefined;
|
|
9
|
-
protected _sampled: boolean | undefined;
|
|
10
|
-
protected _name?: string | undefined;
|
|
11
|
-
protected _attributes: SpanAttributes;
|
|
12
|
-
/** Epoch timestamp in seconds when the span started. */
|
|
13
|
-
protected _startTime: number;
|
|
14
|
-
/** Epoch timestamp in seconds when the span ended. */
|
|
15
|
-
protected _endTime?: number | undefined;
|
|
16
|
-
/** Internal keeper of the status */
|
|
17
|
-
protected _status?: SpanStatus;
|
|
18
|
-
/** The timed events added to this span. */
|
|
19
|
-
protected _events: TimedEvent[];
|
|
20
|
-
/** if true, treat span as a standalone span (not part of a transaction) */
|
|
21
|
-
private _isStandaloneSpan?;
|
|
22
|
-
/**
|
|
23
|
-
* You should never call the constructor manually, always use `Sentry.startSpan()`
|
|
24
|
-
* or other span methods.
|
|
25
|
-
* @internal
|
|
26
|
-
* @hideconstructor
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
constructor(spanContext?: SentrySpanArguments);
|
|
30
|
-
/** @inheritdoc */
|
|
31
|
-
spanContext(): SpanContextData;
|
|
32
|
-
/** @inheritdoc */
|
|
33
|
-
setAttribute(key: string, value: SpanAttributeValue | undefined): void;
|
|
34
|
-
/** @inheritdoc */
|
|
35
|
-
setAttributes(attributes: SpanAttributes): void;
|
|
36
|
-
/**
|
|
37
|
-
* This should generally not be used,
|
|
38
|
-
* but we need it for browser tracing where we want to adjust the start time afterwards.
|
|
39
|
-
* USE THIS WITH CAUTION!
|
|
40
|
-
*
|
|
41
|
-
* @hidden
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
updateStartTime(timeInput: SpanTimeInput): void;
|
|
45
|
-
/**
|
|
46
|
-
* @inheritDoc
|
|
47
|
-
*/
|
|
48
|
-
setStatus(value: SpanStatus): this;
|
|
49
|
-
/**
|
|
50
|
-
* @inheritDoc
|
|
51
|
-
*/
|
|
52
|
-
updateName(name: string): this;
|
|
53
|
-
/** @inheritdoc */
|
|
54
|
-
end(endTimestamp?: SpanTimeInput): void;
|
|
55
|
-
/**
|
|
56
|
-
* Get JSON representation of this span.
|
|
57
|
-
*
|
|
58
|
-
* @hidden
|
|
59
|
-
* @internal This method is purely for internal purposes and should not be used outside
|
|
60
|
-
* of SDK code. If you need to get a JSON representation of a span,
|
|
61
|
-
* use `spanToJSON(span)` instead.
|
|
62
|
-
*/
|
|
63
|
-
getSpanJSON(): SpanJSON;
|
|
64
|
-
/** @inheritdoc */
|
|
65
|
-
isRecording(): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* @inheritdoc
|
|
68
|
-
*/
|
|
69
|
-
addEvent(name: string, attributesOrStartTime?: SpanAttributes | SpanTimeInput, startTime?: SpanTimeInput): this;
|
|
70
|
-
/**
|
|
71
|
-
* This method should generally not be used,
|
|
72
|
-
* but for now we need a way to publicly check if the `_isStandaloneSpan` flag is set.
|
|
73
|
-
* USE THIS WITH CAUTION!
|
|
74
|
-
* @internal
|
|
75
|
-
* @hidden
|
|
76
|
-
* @experimental
|
|
77
|
-
*/
|
|
78
|
-
isStandaloneSpan(): boolean;
|
|
79
|
-
/** Emit `spanEnd` when the span is ended. */
|
|
80
|
-
private _onSpanEnded;
|
|
81
|
-
/**
|
|
82
|
-
* Finish the transaction & prepare the event to send to Sentry.
|
|
83
|
-
*/
|
|
84
|
-
private _convertSpanToTransaction;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=sentrySpan.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sentrySpan.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/sentrySpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,IAAI,EACJ,kBAAkB,EAClB,cAAc,EACd,eAAe,EAEf,QAAQ,EAER,UAAU,EACV,aAAa,EACb,UAAU,EAGX,MAAM,eAAe,CAAC;AA+BvB;;GAEG;AACH,qBAAa,UAAW,YAAW,IAAI;IACrC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,SAAS,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,SAAS,CAAC,WAAW,EAAE,cAAc,CAAC;IACtC,wDAAwD;IACxD,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,sDAAsD;IACtD,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oCAAoC;IACpC,SAAS,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC/B,2CAA2C;IAC3C,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;IAEhC,2EAA2E;IAC3E,OAAO,CAAC,iBAAiB,CAAC,CAAU;IAEpC;;;;;;OAMG;gBACgB,WAAW,GAAE,mBAAwB;IAmCxD,kBAAkB;IACX,WAAW,IAAI,eAAe;IASrC,kBAAkB;IACX,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAS7E,kBAAkB;IACX,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI;IAItD;;;;;;;OAOG;IACI,eAAe,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI;IAItD;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKzC;;OAEG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKrC,kBAAkB;IACX,GAAG,CAAC,YAAY,CAAC,EAAE,aAAa,GAAG,IAAI;IAY9C;;;;;;;OAOG;IACI,WAAW,IAAI,QAAQ;IAqB9B,kBAAkB;IACX,WAAW,IAAI,OAAO;IAI7B;;OAEG;IACI,QAAQ,CACb,IAAI,EAAE,MAAM,EACZ,qBAAqB,CAAC,EAAE,cAAc,GAAG,aAAa,EACtD,SAAS,CAAC,EAAE,aAAa,GACxB,IAAI;IAiBP;;;;;;;OAOG;IACI,gBAAgB,IAAI,OAAO;IAIlC,6CAA6C;IAC7C,OAAO,CAAC,YAAY;IAoCpB;;OAEG;IACH,OAAO,CAAC,yBAAyB;CA4ElC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Span, SpanStatus } from '@sentry/types';
|
|
2
|
-
export declare const SPAN_STATUS_UNSET = 0;
|
|
3
|
-
export declare const SPAN_STATUS_OK = 1;
|
|
4
|
-
export declare const SPAN_STATUS_ERROR = 2;
|
|
5
|
-
/**
|
|
6
|
-
* Converts a HTTP status code into a sentry status with a message.
|
|
7
|
-
*
|
|
8
|
-
* @param httpStatus The HTTP response status code.
|
|
9
|
-
* @returns The span status or unknown_error.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getSpanStatusFromHttpCode(httpStatus: number): SpanStatus;
|
|
12
|
-
/**
|
|
13
|
-
* Sets the Http status attributes on the current span based on the http code.
|
|
14
|
-
* Additionally, the span's status is updated, depending on the http code.
|
|
15
|
-
*/
|
|
16
|
-
export declare function setHttpStatus(span: Span, httpStatus: number): void;
|
|
17
|
-
//# sourceMappingURL=spanstatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spanstatus.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/spanstatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC;;;;;GAKG;AAEH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAwCxE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAOlE"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import type { Scope, Span, StartSpanOptions } from '@sentry/types';
|
|
2
|
-
import { propagationContextFromHeaders } from '@sentry/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Wraps a function with a transaction/span and finishes the span after the function is done.
|
|
5
|
-
* The created span is the active span and will be used as parent by other spans created inside the function
|
|
6
|
-
* and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.
|
|
7
|
-
*
|
|
8
|
-
* If you want to create a span that is not set as active, use {@link startInactiveSpan}.
|
|
9
|
-
*
|
|
10
|
-
* You'll always get a span passed to the callback,
|
|
11
|
-
* it may just be a non-recording span if the span is not sampled or if tracing is disabled.
|
|
12
|
-
*/
|
|
13
|
-
export declare function startSpan<T>(context: StartSpanOptions, callback: (span: Span) => T): T;
|
|
14
|
-
/**
|
|
15
|
-
* Similar to `Sentry.startSpan`. Wraps a function with a transaction/span, but does not finish the span
|
|
16
|
-
* after the function is done automatically. You'll have to call `span.end()` manually.
|
|
17
|
-
*
|
|
18
|
-
* The created span is the active span and will be used as parent by other spans created inside the function
|
|
19
|
-
* and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.
|
|
20
|
-
*
|
|
21
|
-
* You'll always get a span passed to the callback,
|
|
22
|
-
* it may just be a non-recording span if the span is not sampled or if tracing is disabled.
|
|
23
|
-
*/
|
|
24
|
-
export declare function startSpanManual<T>(context: StartSpanOptions, callback: (span: Span, finish: () => void) => T): T;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a span. This span is not set as active, so will not get automatic instrumentation spans
|
|
27
|
-
* as children or be able to be accessed via `Sentry.getActiveSpan()`.
|
|
28
|
-
*
|
|
29
|
-
* If you want to create a span that is set as active, use {@link startSpan}.
|
|
30
|
-
*
|
|
31
|
-
* This function will always return a span,
|
|
32
|
-
* it may just be a non-recording span if the span is not sampled or if tracing is disabled.
|
|
33
|
-
*/
|
|
34
|
-
export declare function startInactiveSpan(context: StartSpanOptions): Span;
|
|
35
|
-
/**
|
|
36
|
-
* Continue a trace from `sentry-trace` and `baggage` values.
|
|
37
|
-
* These values can be obtained from incoming request headers, or in the browser from `<meta name="sentry-trace">`
|
|
38
|
-
* and `<meta name="baggage">` HTML tags.
|
|
39
|
-
*
|
|
40
|
-
* Spans started with `startSpan`, `startSpanManual` and `startInactiveSpan`, within the callback will automatically
|
|
41
|
-
* be attached to the incoming trace.
|
|
42
|
-
*/
|
|
43
|
-
export declare const continueTrace: <V>({ sentryTrace, baggage, }: {
|
|
44
|
-
sentryTrace: Parameters<typeof propagationContextFromHeaders>[0];
|
|
45
|
-
baggage: Parameters<typeof propagationContextFromHeaders>[1];
|
|
46
|
-
}, callback: () => V) => V;
|
|
47
|
-
/**
|
|
48
|
-
* Forks the current scope and sets the provided span as active span in the context of the provided callback. Can be
|
|
49
|
-
* passed `null` to start an entirely new span tree.
|
|
50
|
-
*
|
|
51
|
-
* @param span Spans started in the context of the provided callback will be children of this span. If `null` is passed,
|
|
52
|
-
* spans started within the callback will not be attached to a parent span.
|
|
53
|
-
* @param callback Execution context in which the provided span will be active. Is passed the newly forked scope.
|
|
54
|
-
* @returns the value returned from the provided callback function.
|
|
55
|
-
*/
|
|
56
|
-
export declare function withActiveSpan<T>(span: Span | null, callback: (scope: Scope) => T): T;
|
|
57
|
-
/** Suppress tracing in the given callback, ensuring no spans are generated inside of it. */
|
|
58
|
-
export declare function suppressTracing<T>(callback: () => T): T;
|
|
59
|
-
/**
|
|
60
|
-
* Starts a new trace for the duration of the provided callback. Spans started within the
|
|
61
|
-
* callback will be part of the new trace instead of a potentially previously started trace.
|
|
62
|
-
*
|
|
63
|
-
* Important: Only use this function if you want to override the default trace lifetime and
|
|
64
|
-
* propagation mechanism of the SDK for the duration and scope of the provided callback.
|
|
65
|
-
* The newly created trace will also be the root of a new distributed trace, for example if
|
|
66
|
-
* you make http requests within the callback.
|
|
67
|
-
* This function might be useful if the operation you want to instrument should not be part
|
|
68
|
-
* of a potentially ongoing trace.
|
|
69
|
-
*
|
|
70
|
-
* Default behavior:
|
|
71
|
-
* - Server-side: A new trace is started for each incoming request.
|
|
72
|
-
* - Browser: A new trace is started for each page our route. Navigating to a new route
|
|
73
|
-
* or page will automatically create a new trace.
|
|
74
|
-
*/
|
|
75
|
-
export declare function startNewTrace<T>(callback: () => T): T;
|
|
76
|
-
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,KAAK,EAAuB,IAAI,EAAiB,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtH,OAAO,EAAsC,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAuBlG;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,CAAC,CAmCtF;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAsChH;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAuBjE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;iBAKT,WAAW,oCAAoC,CAAC,CAAC,CAAC,CAAC;aACvD,WAAW,oCAAoC,CAAC,CAAC,CAAC,CAAC;0BAS/D,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,CAUrF;AAED,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAWvD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAMrD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Span } from '@sentry/types';
|
|
2
|
-
import type { Scope } from '@sentry/types';
|
|
3
|
-
export { stripUrlQueryAndFragment } from '@sentry/utils';
|
|
4
|
-
/** Store the scope & isolation scope for a span, which can the be used when it is finished. */
|
|
5
|
-
export declare function setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void;
|
|
6
|
-
/**
|
|
7
|
-
* Grabs the scope and isolation scope off a span that were active when the span was started.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getCapturedScopesOnSpan(span: Span): {
|
|
10
|
-
scope?: Scope;
|
|
11
|
-
isolationScope?: Scope;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAI3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAUzD,+FAA+F;AAC/F,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,GAAG,IAAI,CAKzG;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,cAAc,CAAC,EAAE,KAAK,CAAA;CAAE,CAK7F"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wrap a callback function with error handling.
|
|
3
|
-
* If an error is thrown, it will be passed to the `onError` callback and re-thrown.
|
|
4
|
-
*
|
|
5
|
-
* If the return value of the function is a promise, it will be handled with `maybeHandlePromiseRejection`.
|
|
6
|
-
*
|
|
7
|
-
* If an `onFinally` callback is provided, this will be called when the callback has finished
|
|
8
|
-
* - so if it returns a promise, once the promise resolved/rejected,
|
|
9
|
-
* else once the callback has finished executing.
|
|
10
|
-
* The `onFinally` callback will _always_ be called, no matter if an error was thrown or not.
|
|
11
|
-
*/
|
|
12
|
-
export declare function handleCallbackErrors<Fn extends () => any>(fn: Fn, onError: (error: unknown) => void, onFinally?: () => void): ReturnType<Fn>;
|
|
13
|
-
//# sourceMappingURL=handleCallbackErrors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleCallbackErrors.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/handleCallbackErrors.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAElC,EAAE,SAAS,MAAM,GAAG,EAEpB,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAEjC,SAAS,GAAE,MAAM,IAAe,GAC/B,UAAU,CAAC,EAAE,CAAC,CAWhB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Options } from '@sentry/types';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if tracing is currently enabled.
|
|
4
|
-
*
|
|
5
|
-
* Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.
|
|
6
|
-
*/
|
|
7
|
-
export declare function hasTracingEnabled(maybeOptions?: Pick<Options, 'tracesSampleRate' | 'tracesSampler' | 'enableTracing'> | undefined): boolean;
|
|
8
|
-
//# sourceMappingURL=hasTracingEnabled.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasTracingEnabled.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/hasTracingEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAM7C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,eAAe,GAAG,eAAe,CAAC,GAAG,SAAS,GAC/F,OAAO,CAOT"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parse a sample rate from a given value.
|
|
3
|
-
* This will either return a boolean or number sample rate, if the sample rate is valid (between 0 and 1).
|
|
4
|
-
* If a string is passed, we try to convert it to a number.
|
|
5
|
-
*
|
|
6
|
-
* Any invalid sample rate will return `undefined`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function parseSampleRate(sampleRate: unknown): number | undefined;
|
|
9
|
-
//# sourceMappingURL=parseSampleRate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseSampleRate.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/parseSampleRate.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAiBvE"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Scope, Span } from '@sentry/types';
|
|
2
|
-
declare const SCOPE_SPAN_FIELD = "_sentrySpan";
|
|
3
|
-
type ScopeWithMaybeSpan = Scope & {
|
|
4
|
-
[SCOPE_SPAN_FIELD]?: Span;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Set the active span for a given scope.
|
|
8
|
-
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
9
|
-
*/
|
|
10
|
-
export declare function _setSpanForScope(scope: Scope, span: Span | undefined): void;
|
|
11
|
-
/**
|
|
12
|
-
* Get the active span for a given scope.
|
|
13
|
-
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
14
|
-
*/
|
|
15
|
-
export declare function _getSpanForScope(scope: ScopeWithMaybeSpan): Span | undefined;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=spanOnScope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spanOnScope.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/spanOnScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGjD,QAAA,MAAM,gBAAgB,gBAAgB,CAAC;AAEvC,KAAK,kBAAkB,GAAG,KAAK,GAAG;IAChC,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAO3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAE5E"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { MeasurementUnit, Primitive, Span, SpanAttributes, SpanJSON, SpanStatus, SpanTimeInput, TraceContext } from '@sentry/types';
|
|
2
|
-
import type { MetricType } from '../metrics/types';
|
|
3
|
-
export declare const TRACE_FLAG_NONE = 0;
|
|
4
|
-
export declare const TRACE_FLAG_SAMPLED = 1;
|
|
5
|
-
/**
|
|
6
|
-
* Convert a span to a trace context, which can be sent as the `trace` context in an event.
|
|
7
|
-
* By default, this will only include trace_id, span_id & parent_span_id.
|
|
8
|
-
* If `includeAllData` is true, it will also include data, op, status & origin.
|
|
9
|
-
*/
|
|
10
|
-
export declare function spanToTransactionTraceContext(span: Span): TraceContext;
|
|
11
|
-
/**
|
|
12
|
-
* Convert a span to a trace context, which can be sent as the `trace` context in a non-transaction event.
|
|
13
|
-
*/
|
|
14
|
-
export declare function spanToTraceContext(span: Span): TraceContext;
|
|
15
|
-
/**
|
|
16
|
-
* Convert a Span to a Sentry trace header.
|
|
17
|
-
*/
|
|
18
|
-
export declare function spanToTraceHeader(span: Span): string;
|
|
19
|
-
/**
|
|
20
|
-
* Convert a span time input intp a timestamp in seconds.
|
|
21
|
-
*/
|
|
22
|
-
export declare function spanTimeInputToSeconds(input: SpanTimeInput | undefined): number;
|
|
23
|
-
/**
|
|
24
|
-
* Convert a span to a JSON representation.
|
|
25
|
-
*/
|
|
26
|
-
export declare function spanToJSON(span: Span): Partial<SpanJSON>;
|
|
27
|
-
/** Exported only for tests. */
|
|
28
|
-
export interface OpenTelemetrySdkTraceBaseSpan extends Span {
|
|
29
|
-
attributes: SpanAttributes;
|
|
30
|
-
startTime: SpanTimeInput;
|
|
31
|
-
name: string;
|
|
32
|
-
status: SpanStatus;
|
|
33
|
-
endTime: SpanTimeInput;
|
|
34
|
-
parentSpanId?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns true if a span is sampled.
|
|
38
|
-
* In most cases, you should just use `span.isRecording()` instead.
|
|
39
|
-
* However, this has a slightly different semantic, as it also returns false if the span is finished.
|
|
40
|
-
* So in the case where this distinction is important, use this method.
|
|
41
|
-
*/
|
|
42
|
-
export declare function spanIsSampled(span: Span): boolean;
|
|
43
|
-
/** Get the status message to use for a JSON representation of a span. */
|
|
44
|
-
export declare function getStatusMessage(status: SpanStatus | undefined): string | undefined;
|
|
45
|
-
declare const CHILD_SPANS_FIELD = "_sentryChildSpans";
|
|
46
|
-
declare const ROOT_SPAN_FIELD = "_sentryRootSpan";
|
|
47
|
-
type SpanWithPotentialChildren = Span & {
|
|
48
|
-
[CHILD_SPANS_FIELD]?: Set<Span>;
|
|
49
|
-
[ROOT_SPAN_FIELD]?: Span;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Adds an opaque child span reference to a span.
|
|
53
|
-
*/
|
|
54
|
-
export declare function addChildSpanToSpan(span: SpanWithPotentialChildren, childSpan: Span): void;
|
|
55
|
-
/** This is only used internally by Idle Spans. */
|
|
56
|
-
export declare function removeChildSpanFromSpan(span: SpanWithPotentialChildren, childSpan: Span): void;
|
|
57
|
-
/**
|
|
58
|
-
* Returns an array of the given span and all of its descendants.
|
|
59
|
-
*/
|
|
60
|
-
export declare function getSpanDescendants(span: SpanWithPotentialChildren): Span[];
|
|
61
|
-
/**
|
|
62
|
-
* Returns the root span of a given span.
|
|
63
|
-
*/
|
|
64
|
-
export declare function getRootSpan(span: SpanWithPotentialChildren): Span;
|
|
65
|
-
/**
|
|
66
|
-
* Returns the currently active span.
|
|
67
|
-
*/
|
|
68
|
-
export declare function getActiveSpan(): Span | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Updates the metric summary on the currently active span
|
|
71
|
-
*/
|
|
72
|
-
export declare function updateMetricSummaryOnActiveSpan(metricType: MetricType, sanitizedName: string, value: number, unit: MeasurementUnit, tags: Record<string, Primitive>, bucketKey: string): void;
|
|
73
|
-
export {};
|
|
74
|
-
//# sourceMappingURL=spanUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spanUtils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/spanUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACT,IAAI,EACJ,cAAc,EACd,QAAQ,EAER,UAAU,EACV,aAAa,EACb,YAAY,EACb,MAAM,eAAe,CAAC;AAWvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,eAAO,MAAM,eAAe,IAAM,CAAC;AACnC,eAAO,MAAM,kBAAkB,IAAM,CAAC;AAEtC;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAatE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAK3D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIpD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAe/E;AAUD;;GAEG;AAIH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAoCxD;AAOD,+BAA+B;AAC/B,MAAM,WAAW,6BAA8B,SAAQ,IAAI;IACzD,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAUD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAKjD;AAED,yEAAyE;AACzE,wBA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aAAa,EAAE,MAAM,SAAS,CAAC;AAU7C;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,4BAA4B,CA+HtE;AAED,QAAA,MAAM,0BAA0B,EAAE,4BAAwD,CAAC;AAE3F,cAAM,QAAS,YAAW,qBAAqB;IACtC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IASlC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,mBAAmB,GAAG,IAAI;IACrF,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,GAAG,kBAAkB,GAAG,IAAI;CAkB3F;AAED,QAAA,MAAM,mBAAmB,UAAiB,CAAC;AAE3C,OAAO,EAAE,0BAA0B,EAAE,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
3
|
-
*
|
|
4
|
-
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DEBUG_BUILD: boolean;
|
|
7
|
-
//# sourceMappingURL=debug-build.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-build.d.ts","sourceRoot":"","sources":["../../../../src/debug-build.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,SAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../../src/integration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAS,WAAW,EAA8C,MAAM,eAAe,CAAC;AAuJpG,cAAM,kBAAkB;IACtB,OAAO,CAAC,WAAW,CAAW;IAC9B,OAAO,CAAC,OAAO,CAAqC;IACpD,OAAO,CAAC,UAAU,CAAoC;IAEtD;;;;OAIG;IACI,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAI3C;;;;;OAKG;IACI,KAAK,IAAI,IAAI;IAsBpB;;;OAGG;IACI,IAAI,IAAI,IAAI;IAgDnB;;;OAGG;IACH,OAAO,CAAC,MAAM;IAuBd;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAK3B;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAgB5B;;;OAGG;IACH,OAAO,CAAC,8BAA8B;IActC;;OAEG;IACH,OAAO,CAAC,iCAAiC;IAKzC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAqB9B;;OAEG;IACH,OAAO,CAAC,MAAM;CAGf;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED,+BAA+B;AAC/B,eAAO,MAAM,yBAAyB,QAAQ,oBAwCpB,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,mBAA+C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeVersion.d.ts","sourceRoot":"","sources":["../../../../src/nodeVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;WAAkD,MAAM;WAAS,MAAM;WAAS,MAAM;CAAE,CAAC;AAClH,eAAO,MAAM,UAAU,QAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spanProfileUtils.d.ts","sourceRoot":"","sources":["../../../../src/span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AIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAuBxD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,IAAI,mBAAmB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAepH;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,IAAI,kBAAkB,CAW9F;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,QAAQ,CAUvF;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,CA2BhF;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,CAAC,EAAE,aAAa,GAClB,oBAAoB,CAOtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,CAAC,EAAE,aAAa,GAClB,oBAAoB,CAQtB;AAID;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,EAAE,CA0DtG"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Carrier } from './../carrier';
|
|
2
|
-
import { AsyncContextStrategy } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @private Private API with no semver guarantees!
|
|
5
|
-
*
|
|
6
|
-
* Sets the global async context strategy
|
|
7
|
-
*/
|
|
8
|
-
export declare function setAsyncContextStrategy(strategy: AsyncContextStrategy | undefined): void;
|
|
9
|
-
/**
|
|
10
|
-
* Get the current async context strategy.
|
|
11
|
-
* If none has been setup, the default will be used.
|
|
12
|
-
*/
|
|
13
|
-
export declare function getAsyncContextStrategy(carrier: Carrier): AsyncContextStrategy;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Client, Scope as ScopeInterface } from '@sentry/types';
|
|
2
|
-
import { AsyncContextStrategy } from './types';
|
|
3
|
-
interface Layer {
|
|
4
|
-
client?: Client;
|
|
5
|
-
scope: ScopeInterface;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* This is an object that holds a stack of scopes.
|
|
9
|
-
*/
|
|
10
|
-
export declare class AsyncContextStack {
|
|
11
|
-
private readonly _stack;
|
|
12
|
-
private _isolationScope;
|
|
13
|
-
constructor(scope?: ScopeInterface, isolationScope?: ScopeInterface);
|
|
14
|
-
/**
|
|
15
|
-
* Fork a scope for the stack.
|
|
16
|
-
*/
|
|
17
|
-
withScope<T>(callback: (scope: ScopeInterface) => T): T;
|
|
18
|
-
/**
|
|
19
|
-
* Get the client of the stack.
|
|
20
|
-
*/
|
|
21
|
-
getClient<C extends Client>(): C | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the scope of the top stack.
|
|
24
|
-
*/
|
|
25
|
-
getScope(): ScopeInterface;
|
|
26
|
-
/**
|
|
27
|
-
* Get the isolation scope for the stack.
|
|
28
|
-
*/
|
|
29
|
-
getIsolationScope(): ScopeInterface;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the scope stack for domains or the process.
|
|
32
|
-
*/
|
|
33
|
-
getStack(): Layer[];
|
|
34
|
-
/**
|
|
35
|
-
* Returns the topmost scope layer in the order domain > local > process.
|
|
36
|
-
*/
|
|
37
|
-
getStackTop(): Layer;
|
|
38
|
-
/**
|
|
39
|
-
* Push a scope to the stack.
|
|
40
|
-
*/
|
|
41
|
-
private _pushScope;
|
|
42
|
-
/**
|
|
43
|
-
* Pop a scope from the stack.
|
|
44
|
-
*/
|
|
45
|
-
private _popScope;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get the stack-based async context strategy.
|
|
49
|
-
*/
|
|
50
|
-
export declare function getStackAsyncContextStrategy(): AsyncContextStrategy;
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=stackStrategy.d.ts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Scope } from '@sentry/types';
|
|
2
|
-
import { startInactiveSpan, startSpan, startSpanManual, suppressTracing, withActiveSpan } from './../tracing/trace';
|
|
3
|
-
import { getActiveSpan } from './../utils/spanUtils';
|
|
4
|
-
/**
|
|
5
|
-
* @private Private API with no semver guarantees!
|
|
6
|
-
*
|
|
7
|
-
* Strategy used to track async context.
|
|
8
|
-
*/
|
|
9
|
-
export interface AsyncContextStrategy {
|
|
10
|
-
/**
|
|
11
|
-
* Fork the isolation scope inside of the provided callback.
|
|
12
|
-
*/
|
|
13
|
-
withIsolationScope: <T>(callback: (isolationScope: Scope) => T) => T;
|
|
14
|
-
/**
|
|
15
|
-
* Fork the current scope inside of the provided callback.
|
|
16
|
-
*/
|
|
17
|
-
withScope: <T>(callback: (isolationScope: Scope) => T) => T;
|
|
18
|
-
/**
|
|
19
|
-
* Set the provided scope as the current scope inside of the provided callback.
|
|
20
|
-
*/
|
|
21
|
-
withSetScope: <T>(scope: Scope, callback: (scope: Scope) => T) => T;
|
|
22
|
-
/**
|
|
23
|
-
* Set the provided isolation as the current isolation scope inside of the provided callback.
|
|
24
|
-
*/
|
|
25
|
-
withSetIsolationScope: <T>(isolationScope: Scope, callback: (isolationScope: Scope) => T) => T;
|
|
26
|
-
/**
|
|
27
|
-
* Get the currently active scope.
|
|
28
|
-
*/
|
|
29
|
-
getCurrentScope: () => Scope;
|
|
30
|
-
/**
|
|
31
|
-
* Get the currently active isolation scope.
|
|
32
|
-
*/
|
|
33
|
-
getIsolationScope: () => Scope;
|
|
34
|
-
/** Start an active span. */
|
|
35
|
-
startSpan?: typeof startSpan;
|
|
36
|
-
/** Start an inactive span. */
|
|
37
|
-
startInactiveSpan?: typeof startInactiveSpan;
|
|
38
|
-
/** Start an active manual span. */
|
|
39
|
-
startSpanManual?: typeof startSpanManual;
|
|
40
|
-
/** Get the currently active span. */
|
|
41
|
-
getActiveSpan?: typeof getActiveSpan;
|
|
42
|
-
/** Make a span the active span in the context of the callback. */
|
|
43
|
-
withActiveSpan?: typeof withActiveSpan;
|
|
44
|
-
/** Suppress tracing in the given callback, ensuring no spans are generated inside of it. */
|
|
45
|
-
suppressTracing?: typeof suppressTracing;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Client, Integration, MetricsAggregator, Scope } from '@sentry/types';
|
|
2
|
-
import { AsyncContextStack } from './asyncContext/stackStrategy';
|
|
3
|
-
import { AsyncContextStrategy } from './asyncContext/types';
|
|
4
|
-
/**
|
|
5
|
-
* An object that contains globally accessible properties and maintains a scope stack.
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export interface Carrier {
|
|
9
|
-
__SENTRY__?: VersionedCarrier;
|
|
10
|
-
}
|
|
11
|
-
type VersionedCarrier = {
|
|
12
|
-
version?: string;
|
|
13
|
-
} & Record<Exclude<string, 'version'>, SentryCarrier>;
|
|
14
|
-
interface SentryCarrier {
|
|
15
|
-
acs?: AsyncContextStrategy;
|
|
16
|
-
stack?: AsyncContextStack;
|
|
17
|
-
globalScope?: Scope;
|
|
18
|
-
defaultIsolationScope?: Scope;
|
|
19
|
-
defaultCurrentScope?: Scope;
|
|
20
|
-
globalMetricsAggregators?: WeakMap<Client, MetricsAggregator> | undefined;
|
|
21
|
-
integrations?: Integration[];
|
|
22
|
-
extensions?: {
|
|
23
|
-
[key: string]: Function;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Returns the global shim registry.
|
|
28
|
-
*
|
|
29
|
-
* FIXME: This function is problematic, because despite always returning a valid Carrier,
|
|
30
|
-
* it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check
|
|
31
|
-
* at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.
|
|
32
|
-
**/
|
|
33
|
-
export declare function getMainCarrier(): Carrier;
|
|
34
|
-
/** Will either get the existing sentry carrier, or create a new one. */
|
|
35
|
-
export declare function getSentryCarrier(carrier: Carrier): SentryCarrier;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=carrier.d.ts.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Scope } from '@sentry/types';
|
|
2
|
-
import { Client } from '@sentry/types';
|
|
3
|
-
/**
|
|
4
|
-
* Get the currently active scope.
|
|
5
|
-
*/
|
|
6
|
-
export declare function getCurrentScope(): Scope;
|
|
7
|
-
/**
|
|
8
|
-
* Get the currently active isolation scope.
|
|
9
|
-
* The isolation scope is active for the current exection context.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getIsolationScope(): Scope;
|
|
12
|
-
/**
|
|
13
|
-
* Get the global scope.
|
|
14
|
-
* This scope is applied to _all_ events.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getGlobalScope(): Scope;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new scope with and executes the given operation within.
|
|
19
|
-
* The scope is automatically removed once the operation
|
|
20
|
-
* finishes or throws.
|
|
21
|
-
*/
|
|
22
|
-
export declare function withScope<T>(callback: (scope: Scope) => T): T;
|
|
23
|
-
/**
|
|
24
|
-
* Set the given scope as the active scope in the callback.
|
|
25
|
-
*/
|
|
26
|
-
export declare function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;
|
|
27
|
-
/**
|
|
28
|
-
* Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no
|
|
29
|
-
* async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
|
|
30
|
-
* case, for example, in the browser).
|
|
31
|
-
*
|
|
32
|
-
* Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
|
|
33
|
-
*
|
|
34
|
-
* This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
|
|
35
|
-
* applications directly because it comes with pitfalls. Use at your own risk!
|
|
36
|
-
*/
|
|
37
|
-
export declare function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;
|
|
38
|
-
/**
|
|
39
|
-
* Set the provided isolation scope as active in the given callback. If no
|
|
40
|
-
* async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
|
|
41
|
-
* case, for example, in the browser).
|
|
42
|
-
*
|
|
43
|
-
* Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
|
|
44
|
-
*
|
|
45
|
-
* This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
|
|
46
|
-
* applications directly because it comes with pitfalls. Use at your own risk!
|
|
47
|
-
*
|
|
48
|
-
* If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.
|
|
49
|
-
*/
|
|
50
|
-
export declare function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;
|
|
51
|
-
/**
|
|
52
|
-
* Get the currently active client.
|
|
53
|
-
*/
|
|
54
|
-
export declare function getClient<C extends Client>(): C | undefined;
|
|
55
|
-
//# sourceMappingURL=currentScopes.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Scope } from '@sentry/types';
|
|
2
|
-
/** Get the default current scope. */
|
|
3
|
-
export declare function getDefaultCurrentScope(): Scope;
|
|
4
|
-
/** Get the default isolation scope. */
|
|
5
|
-
export declare function getDefaultIsolationScope(): Scope;
|
|
6
|
-
//# sourceMappingURL=defaultScopes.d.ts.map
|