@sentry/types 8.0.0-alpha.6 → 8.0.0-alpha.8
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/package.json +1 -1
- package/types/hub.d.ts +0 -40
- package/types/hub.d.ts.map +1 -1
- package/types/index.d.ts +4 -2
- package/types/index.d.ts.map +1 -1
- package/types/instrument.d.ts +0 -4
- package/types/instrument.d.ts.map +1 -1
- package/types/options.d.ts +3 -3
- package/types/options.d.ts.map +1 -1
- package/types/scope.d.ts +0 -10
- package/types/scope.d.ts.map +1 -1
- package/types/span.d.ts +6 -9
- package/types/span.d.ts.map +1 -1
- package/types/timedEvent.d.ts +7 -0
- package/types/timedEvent.d.ts.map +1 -0
- package/types/transaction.d.ts +11 -113
- package/types/transaction.d.ts.map +1 -1
- package/types/view-hierarchy.d.ts +18 -0
- package/types/view-hierarchy.d.ts.map +1 -0
- package/types-ts3.8/hub.d.ts +0 -40
- package/types-ts3.8/index.d.ts +4 -2
- package/types-ts3.8/instrument.d.ts +0 -7
- package/types-ts3.8/options.d.ts +3 -3
- package/types-ts3.8/scope.d.ts +0 -10
- package/types-ts3.8/span.d.ts +6 -9
- package/types-ts3.8/timedEvent.d.ts +7 -0
- package/types-ts3.8/transaction.d.ts +11 -113
- package/types-ts3.8/view-hierarchy.d.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/types",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.8",
|
|
4
4
|
"description": "Types for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/types",
|
package/types/hub.d.ts
CHANGED
|
@@ -13,15 +13,6 @@ import type { User } from './user';
|
|
|
13
13
|
* working in case we have a version conflict.
|
|
14
14
|
*/
|
|
15
15
|
export interface Hub {
|
|
16
|
-
/**
|
|
17
|
-
* Checks if this hub's version is older than the given version.
|
|
18
|
-
*
|
|
19
|
-
* @param version A version number to compare to.
|
|
20
|
-
* @return True if the given version is newer; otherwise false.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated This will be removed in v8.
|
|
23
|
-
*/
|
|
24
|
-
isOlderThan(version: number): boolean;
|
|
25
16
|
/**
|
|
26
17
|
* This binds the given client to the current scope.
|
|
27
18
|
* @param client An SDK client (client) instance.
|
|
@@ -29,29 +20,6 @@ export interface Hub {
|
|
|
29
20
|
* @deprecated Use `initAndBind()` directly.
|
|
30
21
|
*/
|
|
31
22
|
bindClient(client?: Client): void;
|
|
32
|
-
/**
|
|
33
|
-
* Create a new scope to store context information.
|
|
34
|
-
*
|
|
35
|
-
* The scope will be layered on top of the current one. It is isolated, i.e. all
|
|
36
|
-
* breadcrumbs and context information added to this scope will be removed once
|
|
37
|
-
* the scope ends. Be sure to always remove this scope with {@link this.popScope}
|
|
38
|
-
* when the operation finishes or throws.
|
|
39
|
-
*
|
|
40
|
-
* @returns Scope, the new cloned scope
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use `withScope` instead.
|
|
43
|
-
*/
|
|
44
|
-
pushScope(): Scope;
|
|
45
|
-
/**
|
|
46
|
-
* Removes a previously pushed scope from the stack.
|
|
47
|
-
*
|
|
48
|
-
* This restores the state before the scope was pushed. All breadcrumbs and
|
|
49
|
-
* context information added since the last call to {@link this.pushScope} are
|
|
50
|
-
* discarded.
|
|
51
|
-
*
|
|
52
|
-
* @deprecated Use `withScope` instead.
|
|
53
|
-
*/
|
|
54
|
-
popScope(): boolean;
|
|
55
23
|
/**
|
|
56
24
|
* Creates a new scope with and executes the given operation within.
|
|
57
25
|
* The scope is automatically removed once the operation
|
|
@@ -216,13 +184,5 @@ export interface Hub {
|
|
|
216
184
|
* @deprecated Use top-level `captureSession` instead.
|
|
217
185
|
*/
|
|
218
186
|
captureSession(endSession?: boolean): void;
|
|
219
|
-
/**
|
|
220
|
-
* Returns if default PII should be sent to Sentry and propagated in outgoing requests
|
|
221
|
-
* when Tracing is used.
|
|
222
|
-
*
|
|
223
|
-
* @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
|
|
224
|
-
* only unnecessarily increased API surface but only wrapped accessing the option.
|
|
225
|
-
*/
|
|
226
|
-
shouldSendDefaultPii(): boolean;
|
|
227
187
|
}
|
|
228
188
|
//# sourceMappingURL=hub.d.ts.map
|
package/types/hub.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../src/hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB
|
|
1
|
+
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../src/hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,M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GAAG,MAAM,CAAC;IAErD;;;;;;;;;;OAUG;IACH,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAEnE;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAEjC;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,IAAI,CAAC;IAElD;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IAE5C;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAE1C;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,IAAI,CAAC;IAEvE;;;;OAIG;IACH,cAAc,CAAC,CAAC,SAAS,WAAW,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAElF;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAEzC;;;;OAIG;IACH,UAAU,IAAI,IAAI,CAAC;IAEnB;;;;;;OAMG;IACH,cAAc,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C"}
|
package/types/index.d.ts
CHANGED
|
@@ -29,13 +29,14 @@ export type { SdkInfo } from './sdkinfo';
|
|
|
29
29
|
export type { SdkMetadata } from './sdkmetadata';
|
|
30
30
|
export type { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, RequestSession, RequestSessionStatus, SessionFlusherLike, SerializedSession, } from './session';
|
|
31
31
|
export type { SeverityLevel } from './severity';
|
|
32
|
-
export type { Span,
|
|
32
|
+
export type { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, MetricSummary, } from './span';
|
|
33
33
|
export type { SpanStatus } from './spanStatus';
|
|
34
|
+
export type { TimedEvent } from './timedEvent';
|
|
34
35
|
export type { StackFrame } from './stackframe';
|
|
35
36
|
export type { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './stacktrace';
|
|
36
37
|
export type { PropagationContext, TracePropagationTargets } from './tracing';
|
|
37
38
|
export type { StartSpanOptions } from './startSpanOptions';
|
|
38
|
-
export type { CustomSamplingContext, SamplingContext, TraceparentData,
|
|
39
|
+
export type { CustomSamplingContext, SamplingContext, TraceparentData, TransactionSource, } from './transaction';
|
|
39
40
|
export type { DurationUnit, InformationUnit, FractionUnit, MeasurementUnit, NoneUnit, Measurements, } from './measurement';
|
|
40
41
|
export type { Thread } from './thread';
|
|
41
42
|
export type { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './transport';
|
|
@@ -47,4 +48,5 @@ export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from '
|
|
|
47
48
|
export type { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn } from './checkin';
|
|
48
49
|
export type { MetricsAggregator, MetricBucketItem, MetricInstance, } from './metrics';
|
|
49
50
|
export type { ParameterizedString } from './parameterize';
|
|
51
|
+
export type { ViewHierarchyData, ViewHierarchyWindow } from './view-hierarchy';
|
|
50
52
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"m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AE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAClG,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/G,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/types/instrument.d.ts
CHANGED
|
@@ -18,10 +18,6 @@ export interface SentryXhrData {
|
|
|
18
18
|
request_headers: Record<string, string>;
|
|
19
19
|
}
|
|
20
20
|
export interface HandlerDataXhr {
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated This property will be removed in v8.
|
|
23
|
-
*/
|
|
24
|
-
args: [string, string];
|
|
25
21
|
xhr: SentryWrappedXMLHttpRequest;
|
|
26
22
|
startTimestamp?: number;
|
|
27
23
|
endTimestamp?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../src/instrument.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,KAAK,YAAY,GAAG,OAAO,CAAC;AAE5B,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5F,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,iBAAiB,CAAC,E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,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC"}
|
package/types/options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';
|
|
2
|
-
import type { ErrorEvent,
|
|
2
|
+
import type { ErrorEvent, EventHint, TransactionEvent } from './event';
|
|
3
3
|
import type { Integration } from './integration';
|
|
4
4
|
import type { CaptureContext } from './scope';
|
|
5
5
|
import type { SdkMetadata } from './sdkmetadata';
|
|
@@ -233,7 +233,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
233
233
|
* @param hint Event metadata useful for processing.
|
|
234
234
|
* @returns A new event that will be sent | null.
|
|
235
235
|
*/
|
|
236
|
-
beforeSend?: (event: ErrorEvent, hint: EventHint) => PromiseLike<
|
|
236
|
+
beforeSend?: (event: ErrorEvent, hint: EventHint) => PromiseLike<ErrorEvent | null> | ErrorEvent | null;
|
|
237
237
|
/**
|
|
238
238
|
* An event-processing callback for transaction events, guaranteed to be invoked after all other event
|
|
239
239
|
* processors. This allows an event to be modified or dropped before it's sent.
|
|
@@ -245,7 +245,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
245
245
|
* @param hint Event metadata useful for processing.
|
|
246
246
|
* @returns A new event that will be sent | null.
|
|
247
247
|
*/
|
|
248
|
-
beforeSendTransaction?: (event: TransactionEvent, hint: EventHint) => PromiseLike<
|
|
248
|
+
beforeSendTransaction?: (event: TransactionEvent, hint: EventHint) => PromiseLike<TransactionEvent | null> | TransactionEvent | null;
|
|
249
249
|
/**
|
|
250
250
|
* A callback invoked when adding a breadcrumb, allowing to optionally modify
|
|
251
251
|
* it before adding it to future events.
|
package/types/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,aAAa,CAAC,EAAE,SAAS,oBAAoB,GAAG,oBAAoB;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb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E,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC,CAAC;IAEhF;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,KAAK,SAAS,CAAC;IAEhD;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,CAAC;CAC/C"}
|
package/types/scope.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import type { RequestSession, Session } from './session';
|
|
|
10
10
|
import type { SeverityLevel } from './severity';
|
|
11
11
|
import type { Span } from './span';
|
|
12
12
|
import type { PropagationContext } from './tracing';
|
|
13
|
-
import type { Transaction } from './transaction';
|
|
14
13
|
import type { User } from './user';
|
|
15
14
|
/** JSDocs */
|
|
16
15
|
export type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) => Scope);
|
|
@@ -134,11 +133,6 @@ export interface Scope {
|
|
|
134
133
|
* @param context an object containing context data. This data will be normalized. Pass `null` to unset the context.
|
|
135
134
|
*/
|
|
136
135
|
setContext(name: string, context: Context | null): this;
|
|
137
|
-
/**
|
|
138
|
-
* Returns the `Transaction` attached to the scope (if there is one).
|
|
139
|
-
* @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.
|
|
140
|
-
*/
|
|
141
|
-
getTransaction(): Transaction | undefined;
|
|
142
136
|
/**
|
|
143
137
|
* Returns the `Session` if there is one
|
|
144
138
|
*/
|
|
@@ -184,10 +178,6 @@ export interface Scope {
|
|
|
184
178
|
* @param attachment Attachment options
|
|
185
179
|
*/
|
|
186
180
|
addAttachment(attachment: Attachment): this;
|
|
187
|
-
/**
|
|
188
|
-
* Returns an array of attachments on the scope
|
|
189
|
-
*/
|
|
190
|
-
getAttachments(): Attachment[];
|
|
191
181
|
/**
|
|
192
182
|
* Clears attachments from the scope
|
|
193
183
|
*/
|
package/types/scope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/scope.ts"],"names":[],"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AM,CAAC;IAE/D;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAEjF;;;;;;OAMG;IACH,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAErD;;OAEG;IACH,KAAK,IAAI,KAAK,CAAC;CAChB"}
|
package/types/span.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export interface SpanContextData {
|
|
|
94
94
|
*/
|
|
95
95
|
spanId: string;
|
|
96
96
|
/**
|
|
97
|
-
* Only true if the
|
|
97
|
+
* Only true if the SentrySpanArguments was propagated from a remote parent.
|
|
98
98
|
*/
|
|
99
99
|
isRemote?: boolean | undefined;
|
|
100
100
|
/**
|
|
@@ -113,7 +113,7 @@ export interface SpanContextData {
|
|
|
113
113
|
* Interface holding all properties that can be set on a Span on creation.
|
|
114
114
|
* This is only used for the legacy span/transaction creation and will go away in v8.
|
|
115
115
|
*/
|
|
116
|
-
export interface
|
|
116
|
+
export interface SentrySpanArguments {
|
|
117
117
|
/**
|
|
118
118
|
* Human-readable identifier for the span.
|
|
119
119
|
*/
|
|
@@ -138,13 +138,6 @@ export interface SpanContext {
|
|
|
138
138
|
* Trace ID
|
|
139
139
|
*/
|
|
140
140
|
traceId?: string | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Data of the Span.
|
|
143
|
-
* @deprecated Pass `attributes` instead.
|
|
144
|
-
*/
|
|
145
|
-
data?: {
|
|
146
|
-
[key: string]: any;
|
|
147
|
-
};
|
|
148
141
|
/**
|
|
149
142
|
* Attributes of the Span.
|
|
150
143
|
*/
|
|
@@ -194,6 +187,10 @@ export interface Span {
|
|
|
194
187
|
* This will return false if tracing is disabled, this span was not sampled or if the span is already finished.
|
|
195
188
|
*/
|
|
196
189
|
isRecording(): boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Adds an event to the Span.
|
|
192
|
+
*/
|
|
193
|
+
addEvent(name: string, attributesOrStartTime?: SpanAttributes | SpanTimeInput, startTime?: SpanTimeInput): this;
|
|
197
194
|
}
|
|
198
195
|
export {};
|
|
199
196
|
//# sourceMappingURL=span.d.ts.map
|
package/types/span.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../src/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,KAAK,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC;AACxC,KAAK,kBAAkB,GAAG,MAAM,CAAC;AACjC,KAAK,yBAAyB,GAAG,MAAM,CAAC;AACxC,KAAK,yBAAyB,GAAG,MAAM,CAAC;AACxC,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,GAAG,cAAc,IAAI,kBAAkB,EAAE,GACzC,GAAG,cAAc,IAAI,kBAAkB,IAAI,yBAAyB,EAAE,GACtE,GAAG,cAAc,IAAI,kBAAkB,IAAI,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;AAGxG,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE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G,SAAS,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,WAAW,IAAI,eAAe,CAAC;IAE/B;;OAEG;IACH,GAAG,CAAC,YAAY,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAExC;;;OAGG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI,CAAC;IAEvE;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAEhD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,qBAAqB,CAAC,EAAE,cAAc,GAAG,aAAa,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACjH"}
|
|
@@ -0,0 +1 @@
|
|
|
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/types/transaction.d.ts
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
import type { Context } from './context';
|
|
2
|
-
import type { DynamicSamplingContext } from './envelope';
|
|
3
|
-
import type { MeasurementUnit } from './measurement';
|
|
4
1
|
import type { ExtractedNodeRequestData, WorkerLocation } from './misc';
|
|
5
|
-
import type {
|
|
6
|
-
import type { Span, SpanAttributes, SpanContext } from './span';
|
|
7
|
-
/**
|
|
8
|
-
* Interface holding Transaction-specific properties
|
|
9
|
-
*/
|
|
10
|
-
export interface TransactionContext extends SpanContext {
|
|
11
|
-
/**
|
|
12
|
-
* Human-readable identifier for the transaction
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* If true, sets the end timestamp of the transaction to the highest timestamp of child spans, trimming
|
|
17
|
-
* the duration of the transaction. This is useful to discard extra time in the transaction that is not
|
|
18
|
-
* accounted for in child spans, like what happens in the idle transaction Tracing integration, where we finish the
|
|
19
|
-
* transaction after a given "idle time" and we don't want this "idle time" to be part of the transaction.
|
|
20
|
-
*/
|
|
21
|
-
trimEnd?: boolean | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* If this transaction has a parent, the parent's sampling decision
|
|
24
|
-
*/
|
|
25
|
-
parentSampled?: boolean | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Metadata associated with the transaction, for internal SDK use.
|
|
28
|
-
* @deprecated Use attributes or store data on the scope instead.
|
|
29
|
-
*/
|
|
30
|
-
metadata?: Partial<TransactionMetadata>;
|
|
31
|
-
}
|
|
2
|
+
import type { SpanAttributes } from './span';
|
|
32
3
|
/**
|
|
33
4
|
* Data pulled from a `sentry-trace` header
|
|
34
5
|
*/
|
|
@@ -46,70 +17,6 @@ export interface TraceparentData {
|
|
|
46
17
|
*/
|
|
47
18
|
parentSampled?: boolean | undefined;
|
|
48
19
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Transaction "Class", inherits Span only has `setName`
|
|
51
|
-
*/
|
|
52
|
-
export interface Transaction extends Omit<TransactionContext, 'name' | 'op' | 'spanId' | 'traceId'>, Span {
|
|
53
|
-
/**
|
|
54
|
-
* @inheritDoc
|
|
55
|
-
*/
|
|
56
|
-
startTimestamp: number;
|
|
57
|
-
/**
|
|
58
|
-
* Data for the transaction.
|
|
59
|
-
* @deprecated Use `getSpanAttributes(transaction)` instead.
|
|
60
|
-
*/
|
|
61
|
-
data: {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Attributes for the transaction.
|
|
66
|
-
* @deprecated Use `getSpanAttributes(transaction)` instead.
|
|
67
|
-
*/
|
|
68
|
-
attributes: SpanAttributes;
|
|
69
|
-
/**
|
|
70
|
-
* Metadata about the transaction.
|
|
71
|
-
* @deprecated Use attributes or store data on the scope instead.
|
|
72
|
-
*/
|
|
73
|
-
metadata: TransactionMetadata;
|
|
74
|
-
/**
|
|
75
|
-
* Set the context of a transaction event.
|
|
76
|
-
* @deprecated Use either `.setAttribute()`, or set the context on the scope before creating the transaction.
|
|
77
|
-
*/
|
|
78
|
-
setContext(key: string, context: Context): void;
|
|
79
|
-
/**
|
|
80
|
-
* Set observed measurement for this transaction.
|
|
81
|
-
*
|
|
82
|
-
* @param name Name of the measurement
|
|
83
|
-
* @param value Value of the measurement
|
|
84
|
-
* @param unit Unit of the measurement. (Defaults to an empty string)
|
|
85
|
-
*
|
|
86
|
-
* @deprecated Use top-level `setMeasurement()` instead.
|
|
87
|
-
*/
|
|
88
|
-
setMeasurement(name: string, value: number, unit: MeasurementUnit): void;
|
|
89
|
-
/**
|
|
90
|
-
* Returns the current transaction properties as a `TransactionContext`.
|
|
91
|
-
* @deprecated Use `toJSON()` or access the fields directly instead.
|
|
92
|
-
*/
|
|
93
|
-
toContext(): TransactionContext;
|
|
94
|
-
/**
|
|
95
|
-
* Set metadata for this transaction.
|
|
96
|
-
* @deprecated Use attributes or store data on the scope instead.
|
|
97
|
-
*/
|
|
98
|
-
setMetadata(newMetadata: Partial<TransactionMetadata>): void;
|
|
99
|
-
/**
|
|
100
|
-
* Return the current Dynamic Sampling Context of this transaction
|
|
101
|
-
*
|
|
102
|
-
* @deprecated Use top-level `getDynamicSamplingContextFromSpan` instead.
|
|
103
|
-
*/
|
|
104
|
-
getDynamicSamplingContext(): Partial<DynamicSamplingContext>;
|
|
105
|
-
/**
|
|
106
|
-
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
|
|
107
|
-
* Also the `sampled` decision will be inherited.
|
|
108
|
-
*
|
|
109
|
-
* @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
|
|
110
|
-
*/
|
|
111
|
-
startChild(spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'sampled' | 'traceId' | 'parentSpanId'>>): Span;
|
|
112
|
-
}
|
|
113
20
|
/**
|
|
114
21
|
* Context data passed by the user when starting a transaction, to be used by the tracesSampler method.
|
|
115
22
|
*/
|
|
@@ -123,9 +30,13 @@ export interface CustomSamplingContext {
|
|
|
123
30
|
*/
|
|
124
31
|
export interface SamplingContext extends CustomSamplingContext {
|
|
125
32
|
/**
|
|
126
|
-
* Context data with which transaction being sampled was created
|
|
33
|
+
* Context data with which transaction being sampled was created.
|
|
34
|
+
* @deprecated This is duplicate data and will be removed eventually.
|
|
127
35
|
*/
|
|
128
|
-
transactionContext:
|
|
36
|
+
transactionContext: {
|
|
37
|
+
name: string;
|
|
38
|
+
parentSampled?: boolean | undefined;
|
|
39
|
+
};
|
|
129
40
|
/**
|
|
130
41
|
* Sampling decision from the parent transaction, if any.
|
|
131
42
|
*/
|
|
@@ -139,23 +50,10 @@ export interface SamplingContext extends CustomSamplingContext {
|
|
|
139
50
|
* Object representing the incoming request to a node server. Passed by default when using the TracingHandler.
|
|
140
51
|
*/
|
|
141
52
|
request?: ExtractedNodeRequestData;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
* @deprecated Use `SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE` attribute instead.
|
|
147
|
-
*/
|
|
148
|
-
sampleRate?: number;
|
|
149
|
-
/**
|
|
150
|
-
* The Dynamic Sampling Context of a transaction. If provided during transaction creation, its Dynamic Sampling
|
|
151
|
-
* Context Will be frozen
|
|
152
|
-
*/
|
|
153
|
-
dynamicSamplingContext?: Partial<DynamicSamplingContext>;
|
|
154
|
-
/** For transactions tracing server-side request handling, the request being tracked. */
|
|
155
|
-
request?: PolymorphicRequest;
|
|
156
|
-
/** For transactions tracing server-side request handling, the path of the request being tracked. */
|
|
157
|
-
/** TODO: If we rm -rf `instrumentServer`, this can go, too */
|
|
158
|
-
requestPath?: string;
|
|
53
|
+
/** The name of the span being sampled. */
|
|
54
|
+
name: string;
|
|
55
|
+
/** Initial attributes that have been passed to the span being sampled. */
|
|
56
|
+
attributes?: SpanAttributes;
|
|
159
57
|
}
|
|
160
58
|
/**
|
|
161
59
|
* Contains information about how the name of the transaction was determined. This will be used by the server to decide
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;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;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D;;;OAGG;IACH,kBAAkB,EAAE;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACrC,CAAC;IAEF;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAEnC,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IAEb,0EAA0E;IAC1E,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/types-ts3.8/hub.d.ts
CHANGED
|
@@ -13,15 +13,6 @@ import { User } from './user';
|
|
|
13
13
|
* working in case we have a version conflict.
|
|
14
14
|
*/
|
|
15
15
|
export interface Hub {
|
|
16
|
-
/**
|
|
17
|
-
* Checks if this hub's version is older than the given version.
|
|
18
|
-
*
|
|
19
|
-
* @param version A version number to compare to.
|
|
20
|
-
* @return True if the given version is newer; otherwise false.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated This will be removed in v8.
|
|
23
|
-
*/
|
|
24
|
-
isOlderThan(version: number): boolean;
|
|
25
16
|
/**
|
|
26
17
|
* This binds the given client to the current scope.
|
|
27
18
|
* @param client An SDK client (client) instance.
|
|
@@ -29,29 +20,6 @@ export interface Hub {
|
|
|
29
20
|
* @deprecated Use `initAndBind()` directly.
|
|
30
21
|
*/
|
|
31
22
|
bindClient(client?: Client): void;
|
|
32
|
-
/**
|
|
33
|
-
* Create a new scope to store context information.
|
|
34
|
-
*
|
|
35
|
-
* The scope will be layered on top of the current one. It is isolated, i.e. all
|
|
36
|
-
* breadcrumbs and context information added to this scope will be removed once
|
|
37
|
-
* the scope ends. Be sure to always remove this scope with {@link this.popScope}
|
|
38
|
-
* when the operation finishes or throws.
|
|
39
|
-
*
|
|
40
|
-
* @returns Scope, the new cloned scope
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use `withScope` instead.
|
|
43
|
-
*/
|
|
44
|
-
pushScope(): Scope;
|
|
45
|
-
/**
|
|
46
|
-
* Removes a previously pushed scope from the stack.
|
|
47
|
-
*
|
|
48
|
-
* This restores the state before the scope was pushed. All breadcrumbs and
|
|
49
|
-
* context information added since the last call to {@link this.pushScope} are
|
|
50
|
-
* discarded.
|
|
51
|
-
*
|
|
52
|
-
* @deprecated Use `withScope` instead.
|
|
53
|
-
*/
|
|
54
|
-
popScope(): boolean;
|
|
55
23
|
/**
|
|
56
24
|
* Creates a new scope with and executes the given operation within.
|
|
57
25
|
* The scope is automatically removed once the operation
|
|
@@ -216,13 +184,5 @@ export interface Hub {
|
|
|
216
184
|
* @deprecated Use top-level `captureSession` instead.
|
|
217
185
|
*/
|
|
218
186
|
captureSession(endSession?: boolean): void;
|
|
219
|
-
/**
|
|
220
|
-
* Returns if default PII should be sent to Sentry and propagated in outgoing requests
|
|
221
|
-
* when Tracing is used.
|
|
222
|
-
*
|
|
223
|
-
* @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
|
|
224
|
-
* only unnecessarily increased API surface but only wrapped accessing the option.
|
|
225
|
-
*/
|
|
226
|
-
shouldSendDefaultPii(): boolean;
|
|
227
187
|
}
|
|
228
188
|
//# sourceMappingURL=hub.d.ts.map
|
package/types-ts3.8/index.d.ts
CHANGED
|
@@ -29,13 +29,14 @@ export { SdkInfo } from './sdkinfo';
|
|
|
29
29
|
export { SdkMetadata } from './sdkmetadata';
|
|
30
30
|
export { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, RequestSession, RequestSessionStatus, SessionFlusherLike, SerializedSession, } from './session';
|
|
31
31
|
export { SeverityLevel } from './severity';
|
|
32
|
-
export { Span,
|
|
32
|
+
export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, MetricSummary, } from './span';
|
|
33
33
|
export { SpanStatus } from './spanStatus';
|
|
34
|
+
export { TimedEvent } from './timedEvent';
|
|
34
35
|
export { StackFrame } from './stackframe';
|
|
35
36
|
export { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './stacktrace';
|
|
36
37
|
export { PropagationContext, TracePropagationTargets } from './tracing';
|
|
37
38
|
export { StartSpanOptions } from './startSpanOptions';
|
|
38
|
-
export { CustomSamplingContext, SamplingContext, TraceparentData,
|
|
39
|
+
export { CustomSamplingContext, SamplingContext, TraceparentData, TransactionSource, } from './transaction';
|
|
39
40
|
export { DurationUnit, InformationUnit, FractionUnit, MeasurementUnit, NoneUnit, Measurements, } from './measurement';
|
|
40
41
|
export { Thread } from './thread';
|
|
41
42
|
export { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './transport';
|
|
@@ -47,4 +48,5 @@ export { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './bro
|
|
|
47
48
|
export { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn } from './checkin';
|
|
48
49
|
export { MetricsAggregator, MetricBucketItem, MetricInstance, } from './metrics';
|
|
49
50
|
export { ParameterizedString } from './parameterize';
|
|
51
|
+
export { ViewHierarchyData, ViewHierarchyWindow } from './view-hierarchy';
|
|
50
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,13 +18,6 @@ export interface SentryXhrData {
|
|
|
18
18
|
request_headers: Record<string, string>;
|
|
19
19
|
}
|
|
20
20
|
export interface HandlerDataXhr {
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated This property will be removed in v8.
|
|
23
|
-
*/
|
|
24
|
-
args: [
|
|
25
|
-
string,
|
|
26
|
-
string
|
|
27
|
-
];
|
|
28
21
|
xhr: SentryWrappedXMLHttpRequest;
|
|
29
22
|
startTimestamp?: number;
|
|
30
23
|
endTimestamp?: number;
|
package/types-ts3.8/options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breadcrumb, BreadcrumbHint } from './breadcrumb';
|
|
2
|
-
import { ErrorEvent,
|
|
2
|
+
import { ErrorEvent, EventHint, TransactionEvent } from './event';
|
|
3
3
|
import { Integration } from './integration';
|
|
4
4
|
import { CaptureContext } from './scope';
|
|
5
5
|
import { SdkMetadata } from './sdkmetadata';
|
|
@@ -233,7 +233,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
233
233
|
* @param hint Event metadata useful for processing.
|
|
234
234
|
* @returns A new event that will be sent | null.
|
|
235
235
|
*/
|
|
236
|
-
beforeSend?: (event: ErrorEvent, hint: EventHint) => PromiseLike<
|
|
236
|
+
beforeSend?: (event: ErrorEvent, hint: EventHint) => PromiseLike<ErrorEvent | null> | ErrorEvent | null;
|
|
237
237
|
/**
|
|
238
238
|
* An event-processing callback for transaction events, guaranteed to be invoked after all other event
|
|
239
239
|
* processors. This allows an event to be modified or dropped before it's sent.
|
|
@@ -245,7 +245,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
245
245
|
* @param hint Event metadata useful for processing.
|
|
246
246
|
* @returns A new event that will be sent | null.
|
|
247
247
|
*/
|
|
248
|
-
beforeSendTransaction?: (event: TransactionEvent, hint: EventHint) => PromiseLike<
|
|
248
|
+
beforeSendTransaction?: (event: TransactionEvent, hint: EventHint) => PromiseLike<TransactionEvent | null> | TransactionEvent | null;
|
|
249
249
|
/**
|
|
250
250
|
* A callback invoked when adding a breadcrumb, allowing to optionally modify
|
|
251
251
|
* it before adding it to future events.
|
package/types-ts3.8/scope.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { RequestSession, Session } from './session';
|
|
|
10
10
|
import { SeverityLevel } from './severity';
|
|
11
11
|
import { Span } from './span';
|
|
12
12
|
import { PropagationContext } from './tracing';
|
|
13
|
-
import { Transaction } from './transaction';
|
|
14
13
|
import { User } from './user';
|
|
15
14
|
/** JSDocs */
|
|
16
15
|
export type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) => Scope);
|
|
@@ -134,11 +133,6 @@ export interface Scope {
|
|
|
134
133
|
* @param context an object containing context data. This data will be normalized. Pass `null` to unset the context.
|
|
135
134
|
*/
|
|
136
135
|
setContext(name: string, context: Context | null): this;
|
|
137
|
-
/**
|
|
138
|
-
* Returns the `Transaction` attached to the scope (if there is one).
|
|
139
|
-
* @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.
|
|
140
|
-
*/
|
|
141
|
-
getTransaction(): Transaction | undefined;
|
|
142
136
|
/**
|
|
143
137
|
* Returns the `Session` if there is one
|
|
144
138
|
*/
|
|
@@ -184,10 +178,6 @@ export interface Scope {
|
|
|
184
178
|
* @param attachment Attachment options
|
|
185
179
|
*/
|
|
186
180
|
addAttachment(attachment: Attachment): this;
|
|
187
|
-
/**
|
|
188
|
-
* Returns an array of attachments on the scope
|
|
189
|
-
*/
|
|
190
|
-
getAttachments(): Attachment[];
|
|
191
181
|
/**
|
|
192
182
|
* Clears attachments from the scope
|
|
193
183
|
*/
|
package/types-ts3.8/span.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export interface SpanContextData {
|
|
|
94
94
|
*/
|
|
95
95
|
spanId: string;
|
|
96
96
|
/**
|
|
97
|
-
* Only true if the
|
|
97
|
+
* Only true if the SentrySpanArguments was propagated from a remote parent.
|
|
98
98
|
*/
|
|
99
99
|
isRemote?: boolean | undefined;
|
|
100
100
|
/**
|
|
@@ -113,7 +113,7 @@ export interface SpanContextData {
|
|
|
113
113
|
* Interface holding all properties that can be set on a Span on creation.
|
|
114
114
|
* This is only used for the legacy span/transaction creation and will go away in v8.
|
|
115
115
|
*/
|
|
116
|
-
export interface
|
|
116
|
+
export interface SentrySpanArguments {
|
|
117
117
|
/**
|
|
118
118
|
* Human-readable identifier for the span.
|
|
119
119
|
*/
|
|
@@ -138,13 +138,6 @@ export interface SpanContext {
|
|
|
138
138
|
* Trace ID
|
|
139
139
|
*/
|
|
140
140
|
traceId?: string | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Data of the Span.
|
|
143
|
-
* @deprecated Pass `attributes` instead.
|
|
144
|
-
*/
|
|
145
|
-
data?: {
|
|
146
|
-
[key: string]: any;
|
|
147
|
-
};
|
|
148
141
|
/**
|
|
149
142
|
* Attributes of the Span.
|
|
150
143
|
*/
|
|
@@ -194,6 +187,10 @@ export interface Span {
|
|
|
194
187
|
* This will return false if tracing is disabled, this span was not sampled or if the span is already finished.
|
|
195
188
|
*/
|
|
196
189
|
isRecording(): boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Adds an event to the Span.
|
|
192
|
+
*/
|
|
193
|
+
addEvent(name: string, attributesOrStartTime?: SpanAttributes | SpanTimeInput, startTime?: SpanTimeInput): this;
|
|
197
194
|
}
|
|
198
195
|
export {};
|
|
199
196
|
//# sourceMappingURL=span.d.ts.map
|
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
import { Context } from './context';
|
|
2
|
-
import { DynamicSamplingContext } from './envelope';
|
|
3
|
-
import { MeasurementUnit } from './measurement';
|
|
4
1
|
import { ExtractedNodeRequestData, WorkerLocation } from './misc';
|
|
5
|
-
import {
|
|
6
|
-
import { Span, SpanAttributes, SpanContext } from './span';
|
|
7
|
-
/**
|
|
8
|
-
* Interface holding Transaction-specific properties
|
|
9
|
-
*/
|
|
10
|
-
export interface TransactionContext extends SpanContext {
|
|
11
|
-
/**
|
|
12
|
-
* Human-readable identifier for the transaction
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* If true, sets the end timestamp of the transaction to the highest timestamp of child spans, trimming
|
|
17
|
-
* the duration of the transaction. This is useful to discard extra time in the transaction that is not
|
|
18
|
-
* accounted for in child spans, like what happens in the idle transaction Tracing integration, where we finish the
|
|
19
|
-
* transaction after a given "idle time" and we don't want this "idle time" to be part of the transaction.
|
|
20
|
-
*/
|
|
21
|
-
trimEnd?: boolean | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* If this transaction has a parent, the parent's sampling decision
|
|
24
|
-
*/
|
|
25
|
-
parentSampled?: boolean | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Metadata associated with the transaction, for internal SDK use.
|
|
28
|
-
* @deprecated Use attributes or store data on the scope instead.
|
|
29
|
-
*/
|
|
30
|
-
metadata?: Partial<TransactionMetadata>;
|
|
31
|
-
}
|
|
2
|
+
import { SpanAttributes } from './span';
|
|
32
3
|
/**
|
|
33
4
|
* Data pulled from a `sentry-trace` header
|
|
34
5
|
*/
|
|
@@ -46,70 +17,6 @@ export interface TraceparentData {
|
|
|
46
17
|
*/
|
|
47
18
|
parentSampled?: boolean | undefined;
|
|
48
19
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Transaction "Class", inherits Span only has `setName`
|
|
51
|
-
*/
|
|
52
|
-
export interface Transaction extends Pick<TransactionContext, Exclude<keyof TransactionContext, 'name' | 'op' | 'spanId' | 'traceId'>>, Span {
|
|
53
|
-
/**
|
|
54
|
-
* @inheritDoc
|
|
55
|
-
*/
|
|
56
|
-
startTimestamp: number;
|
|
57
|
-
/**
|
|
58
|
-
* Data for the transaction.
|
|
59
|
-
* @deprecated Use `getSpanAttributes(transaction)` instead.
|
|
60
|
-
*/
|
|
61
|
-
data: {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Attributes for the transaction.
|
|
66
|
-
* @deprecated Use `getSpanAttributes(transaction)` instead.
|
|
67
|
-
*/
|
|
68
|
-
attributes: SpanAttributes;
|
|
69
|
-
/**
|
|
70
|
-
* Metadata about the transaction.
|
|
71
|
-
* @deprecated Use attributes or store data on the scope instead.
|
|
72
|
-
*/
|
|
73
|
-
metadata: TransactionMetadata;
|
|
74
|
-
/**
|
|
75
|
-
* Set the context of a transaction event.
|
|
76
|
-
* @deprecated Use either `.setAttribute()`, or set the context on the scope before creating the transaction.
|
|
77
|
-
*/
|
|
78
|
-
setContext(key: string, context: Context): void;
|
|
79
|
-
/**
|
|
80
|
-
* Set observed measurement for this transaction.
|
|
81
|
-
*
|
|
82
|
-
* @param name Name of the measurement
|
|
83
|
-
* @param value Value of the measurement
|
|
84
|
-
* @param unit Unit of the measurement. (Defaults to an empty string)
|
|
85
|
-
*
|
|
86
|
-
* @deprecated Use top-level `setMeasurement()` instead.
|
|
87
|
-
*/
|
|
88
|
-
setMeasurement(name: string, value: number, unit: MeasurementUnit): void;
|
|
89
|
-
/**
|
|
90
|
-
* Returns the current transaction properties as a `TransactionContext`.
|
|
91
|
-
* @deprecated Use `toJSON()` or access the fields directly instead.
|
|
92
|
-
*/
|
|
93
|
-
toContext(): TransactionContext;
|
|
94
|
-
/**
|
|
95
|
-
* Set metadata for this transaction.
|
|
96
|
-
* @deprecated Use attributes or store data on the scope instead.
|
|
97
|
-
*/
|
|
98
|
-
setMetadata(newMetadata: Partial<TransactionMetadata>): void;
|
|
99
|
-
/**
|
|
100
|
-
* Return the current Dynamic Sampling Context of this transaction
|
|
101
|
-
*
|
|
102
|
-
* @deprecated Use top-level `getDynamicSamplingContextFromSpan` instead.
|
|
103
|
-
*/
|
|
104
|
-
getDynamicSamplingContext(): Partial<DynamicSamplingContext>;
|
|
105
|
-
/**
|
|
106
|
-
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
|
|
107
|
-
* Also the `sampled` decision will be inherited.
|
|
108
|
-
*
|
|
109
|
-
* @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
|
|
110
|
-
*/
|
|
111
|
-
startChild(spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'sampled' | 'traceId' | 'parentSpanId'>>): Span;
|
|
112
|
-
}
|
|
113
20
|
/**
|
|
114
21
|
* Context data passed by the user when starting a transaction, to be used by the tracesSampler method.
|
|
115
22
|
*/
|
|
@@ -123,9 +30,13 @@ export interface CustomSamplingContext {
|
|
|
123
30
|
*/
|
|
124
31
|
export interface SamplingContext extends CustomSamplingContext {
|
|
125
32
|
/**
|
|
126
|
-
* Context data with which transaction being sampled was created
|
|
33
|
+
* Context data with which transaction being sampled was created.
|
|
34
|
+
* @deprecated This is duplicate data and will be removed eventually.
|
|
127
35
|
*/
|
|
128
|
-
transactionContext:
|
|
36
|
+
transactionContext: {
|
|
37
|
+
name: string;
|
|
38
|
+
parentSampled?: boolean | undefined;
|
|
39
|
+
};
|
|
129
40
|
/**
|
|
130
41
|
* Sampling decision from the parent transaction, if any.
|
|
131
42
|
*/
|
|
@@ -139,23 +50,10 @@ export interface SamplingContext extends CustomSamplingContext {
|
|
|
139
50
|
* Object representing the incoming request to a node server. Passed by default when using the TracingHandler.
|
|
140
51
|
*/
|
|
141
52
|
request?: ExtractedNodeRequestData;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
* @deprecated Use `SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE` attribute instead.
|
|
147
|
-
*/
|
|
148
|
-
sampleRate?: number;
|
|
149
|
-
/**
|
|
150
|
-
* The Dynamic Sampling Context of a transaction. If provided during transaction creation, its Dynamic Sampling
|
|
151
|
-
* Context Will be frozen
|
|
152
|
-
*/
|
|
153
|
-
dynamicSamplingContext?: Partial<DynamicSamplingContext>;
|
|
154
|
-
/** For transactions tracing server-side request handling, the request being tracked. */
|
|
155
|
-
request?: PolymorphicRequest;
|
|
156
|
-
/** For transactions tracing server-side request handling, the path of the request being tracked. */
|
|
157
|
-
/** TODO: If we rm -rf `instrumentServer`, this can go, too */
|
|
158
|
-
requestPath?: string;
|
|
53
|
+
/** The name of the span being sampled. */
|
|
54
|
+
name: string;
|
|
55
|
+
/** Initial attributes that have been passed to the span being sampled. */
|
|
56
|
+
attributes?: SpanAttributes;
|
|
159
57
|
}
|
|
160
58
|
/**
|
|
161
59
|
* Contains information about how the name of the transaction was determined. This will be used by the server to decide
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|