@sentry/types 7.105.0 → 8.0.0-alpha.1
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 +2 -2
- package/types/attachment.d.ts +22 -1
- package/types/attachment.d.ts.map +1 -1
- package/types/breadcrumb.d.ts +2 -2
- package/types/breadcrumb.d.ts.map +1 -1
- package/types/client.d.ts +54 -51
- package/types/client.d.ts.map +1 -1
- package/types/datacategory.d.ts +1 -1
- package/types/datacategory.d.ts.map +1 -1
- package/types/envelope.d.ts +2 -13
- package/types/envelope.d.ts.map +1 -1
- package/types/event.d.ts +2 -2
- package/types/event.d.ts.map +1 -1
- package/types/hub.d.ts +3 -34
- package/types/hub.d.ts.map +1 -1
- package/types/index.d.ts +2 -4
- package/types/index.d.ts.map +1 -1
- package/types/integration.d.ts +2 -6
- package/types/integration.d.ts.map +1 -1
- package/types/options.d.ts +22 -22
- package/types/options.d.ts.map +1 -1
- package/types/scope.d.ts +10 -6
- package/types/scope.d.ts.map +1 -1
- package/types/severity.d.ts +0 -18
- package/types/severity.d.ts.map +1 -1
- package/types/span.d.ts +16 -198
- package/types/span.d.ts.map +1 -1
- package/types/startSpanOptions.d.ts +0 -10
- package/types/startSpanOptions.d.ts.map +1 -1
- package/types/transaction.d.ts +20 -40
- package/types/transaction.d.ts.map +1 -1
- package/types/transport.d.ts +0 -2
- package/types/transport.d.ts.map +1 -1
- package/types/user.d.ts +0 -4
- package/types/user.d.ts.map +1 -1
- package/types-ts3.8/attachment.d.ts +22 -1
- package/types-ts3.8/breadcrumb.d.ts +2 -2
- package/types-ts3.8/client.d.ts +54 -51
- package/types-ts3.8/datacategory.d.ts +1 -1
- package/types-ts3.8/envelope.d.ts +2 -13
- package/types-ts3.8/event.d.ts +2 -2
- package/types-ts3.8/hub.d.ts +3 -34
- package/types-ts3.8/index.d.ts +2 -4
- package/types-ts3.8/integration.d.ts +2 -6
- package/types-ts3.8/options.d.ts +22 -22
- package/types-ts3.8/scope.d.ts +10 -6
- package/types-ts3.8/severity.d.ts +0 -18
- package/types-ts3.8/span.d.ts +16 -198
- package/types-ts3.8/startSpanOptions.d.ts +0 -10
- package/types-ts3.8/transaction.d.ts +20 -40
- package/types-ts3.8/transport.d.ts +0 -2
- package/types-ts3.8/user.d.ts +0 -4
- package/types/instrumenter.d.ts +0 -2
- package/types/instrumenter.d.ts.map +0 -1
- package/types/textencoder.d.ts +0 -15
- package/types/textencoder.d.ts.map +0 -1
- package/types-ts3.8/instrumenter.d.ts +0 -2
- package/types-ts3.8/textencoder.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha.1",
|
|
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",
|
|
7
7
|
"author": "Sentry",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=8"
|
|
10
|
+
"node": ">=14.8"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"cjs",
|
package/types/attachment.d.ts
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An attachment to an event. This is used to upload arbitrary data to Sentry.
|
|
3
|
+
*
|
|
4
|
+
* Please take care to not add sensitive information in attachments.
|
|
5
|
+
*
|
|
6
|
+
* https://develop.sentry.dev/sdk/envelopes/#attachment
|
|
7
|
+
*/
|
|
1
8
|
export interface Attachment {
|
|
9
|
+
/**
|
|
10
|
+
* The attachment data. Can be a string or a binary data (byte array)
|
|
11
|
+
*/
|
|
2
12
|
data: string | Uint8Array;
|
|
13
|
+
/**
|
|
14
|
+
* The name of the uploaded file without a path component
|
|
15
|
+
*/
|
|
3
16
|
filename: string;
|
|
17
|
+
/**
|
|
18
|
+
* The content type of the attachment payload. Defaults to `application/octet-stream` if not specified.
|
|
19
|
+
*
|
|
20
|
+
* Any valid [media type](https://www.iana.org/assignments/media-types/media-types.xhtml) is allowed.
|
|
21
|
+
*/
|
|
4
22
|
contentType?: string;
|
|
5
|
-
|
|
23
|
+
/**
|
|
24
|
+
* The type of the attachment. Defaults to `event.attachment` if not specified.
|
|
25
|
+
*/
|
|
26
|
+
attachmentType?: 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs';
|
|
6
27
|
}
|
|
7
28
|
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/attachment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/attachment.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,GAAG,gBAAgB,GAAG,wBAAwB,GAAG,gBAAgB,GAAG,aAAa,CAAC;CACtH"}
|
package/types/breadcrumb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SeverityLevel } from './severity';
|
|
2
2
|
/** JSDoc */
|
|
3
3
|
export interface Breadcrumb {
|
|
4
4
|
type?: string;
|
|
5
|
-
level?:
|
|
5
|
+
level?: SeverityLevel;
|
|
6
6
|
event_id?: string;
|
|
7
7
|
category?: string;
|
|
8
8
|
message?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../src/breadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../src/breadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY;AACZ,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,YAAY;AACZ,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
package/types/client.d.ts
CHANGED
|
@@ -8,13 +8,12 @@ import type { Event, EventHint } from './event';
|
|
|
8
8
|
import type { EventProcessor } from './eventprocessor';
|
|
9
9
|
import type { FeedbackEvent } from './feedback';
|
|
10
10
|
import type { Integration, IntegrationClass } from './integration';
|
|
11
|
-
import type { MetricBucketItem } from './metrics';
|
|
12
11
|
import type { ClientOptions } from './options';
|
|
13
12
|
import type { ParameterizedString } from './parameterize';
|
|
14
13
|
import type { Scope } from './scope';
|
|
15
14
|
import type { SdkMetadata } from './sdkmetadata';
|
|
16
15
|
import type { Session, SessionAggregates } from './session';
|
|
17
|
-
import type {
|
|
16
|
+
import type { SeverityLevel } from './severity';
|
|
18
17
|
import type { StartSpanOptions } from './startSpanOptions';
|
|
19
18
|
import type { Transaction } from './transaction';
|
|
20
19
|
import type { Transport, TransportMakeRequestResponse } from './transport';
|
|
@@ -46,7 +45,7 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
46
45
|
* @param scope An optional scope containing event metadata.
|
|
47
46
|
* @returns The event id
|
|
48
47
|
*/
|
|
49
|
-
captureMessage(message: string, level?:
|
|
48
|
+
captureMessage(message: string, level?: SeverityLevel, hint?: EventHint, scope?: Scope): string | undefined;
|
|
50
49
|
/**
|
|
51
50
|
* Captures a manually created event and sends it to Sentry.
|
|
52
51
|
*
|
|
@@ -61,7 +60,7 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
61
60
|
*
|
|
62
61
|
* @param session Session to be delivered
|
|
63
62
|
*/
|
|
64
|
-
captureSession
|
|
63
|
+
captureSession(session: Session): void;
|
|
65
64
|
/**
|
|
66
65
|
* Create a cron monitor check in and send it to Sentry. This method is not available on all clients.
|
|
67
66
|
*
|
|
@@ -79,9 +78,8 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
79
78
|
/**
|
|
80
79
|
* @inheritdoc
|
|
81
80
|
*
|
|
82
|
-
* TODO (v8): Make this a required method.
|
|
83
81
|
*/
|
|
84
|
-
getSdkMetadata
|
|
82
|
+
getSdkMetadata(): SdkMetadata | undefined;
|
|
85
83
|
/**
|
|
86
84
|
* Returns the transport that is used by the client.
|
|
87
85
|
* Please note that the transport gets lazy initialized so it will only be there once the first event has been sent.
|
|
@@ -109,32 +107,27 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
109
107
|
flush(timeout?: number): PromiseLike<boolean>;
|
|
110
108
|
/**
|
|
111
109
|
* Adds an event processor that applies to any event processed by this client.
|
|
112
|
-
*
|
|
113
|
-
* TODO (v8): Make this a required method.
|
|
114
110
|
*/
|
|
115
|
-
addEventProcessor
|
|
111
|
+
addEventProcessor(eventProcessor: EventProcessor): void;
|
|
116
112
|
/**
|
|
117
113
|
* Get all added event processors for this client.
|
|
118
|
-
*
|
|
119
|
-
* TODO (v8): Make this a required method.
|
|
120
114
|
*/
|
|
121
|
-
getEventProcessors
|
|
115
|
+
getEventProcessors(): EventProcessor[];
|
|
122
116
|
/**
|
|
123
117
|
* Returns the client's instance of the given integration class, it any.
|
|
124
118
|
* @deprecated Use `getIntegrationByName()` instead.
|
|
125
119
|
*/
|
|
126
120
|
getIntegration<T extends Integration>(integration: IntegrationClass<T>): T | null;
|
|
127
121
|
/** Get the instance of the integration with the given name on the client, if it was added. */
|
|
128
|
-
getIntegrationByName
|
|
122
|
+
getIntegrationByName<T extends Integration = Integration>(name: string): T | undefined;
|
|
129
123
|
/**
|
|
130
124
|
* Add an integration to the client.
|
|
131
125
|
* This can be used to e.g. lazy load integrations.
|
|
132
126
|
* In most cases, this should not be necessary, and you're better off just passing the integrations via `integrations: []` at initialization time.
|
|
133
127
|
* However, if you find the need to conditionally load & add an integration, you can use `addIntegration` to do so.
|
|
134
128
|
*
|
|
135
|
-
* TODO (v8): Make this a required method.
|
|
136
129
|
* */
|
|
137
|
-
addIntegration
|
|
130
|
+
addIntegration(integration: Integration): void;
|
|
138
131
|
/**
|
|
139
132
|
* This is an internal function to setup all integrations that should run on the client.
|
|
140
133
|
* @deprecated Use `client.init()` instead.
|
|
@@ -144,11 +137,11 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
144
137
|
* Initialize this client.
|
|
145
138
|
* Call this after the client was set on a scope.
|
|
146
139
|
*/
|
|
147
|
-
init
|
|
140
|
+
init(): void;
|
|
148
141
|
/** Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`. */
|
|
149
142
|
eventFromException(exception: any, hint?: EventHint): PromiseLike<Event>;
|
|
150
143
|
/** Creates an {@link Event} from primitive inputs to `captureMessage`. */
|
|
151
|
-
eventFromMessage(message: ParameterizedString, level?:
|
|
144
|
+
eventFromMessage(message: ParameterizedString, level?: SeverityLevel, hint?: EventHint): PromiseLike<Event>;
|
|
152
145
|
/** Submits the event to Sentry */
|
|
153
146
|
sendEvent(event: Event, hint?: EventHint): void;
|
|
154
147
|
/** Submits the session to Sentry */
|
|
@@ -161,55 +154,49 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
161
154
|
* @param event The dropped event.
|
|
162
155
|
*/
|
|
163
156
|
recordDroppedEvent(reason: EventDropReason, dataCategory: DataCategory, event?: Event): void;
|
|
164
|
-
/**
|
|
165
|
-
* Captures serialized metrics and sends them to Sentry.
|
|
166
|
-
*
|
|
167
|
-
* @experimental This API is experimental and might experience breaking changes
|
|
168
|
-
*/
|
|
169
|
-
captureAggregateMetrics?(metricBucketItems: Array<MetricBucketItem>): void;
|
|
170
157
|
/**
|
|
171
158
|
* Register a callback for transaction start.
|
|
172
159
|
* Receives the transaction as argument.
|
|
173
160
|
*/
|
|
174
|
-
on
|
|
161
|
+
on(hook: 'startTransaction', callback: (transaction: Transaction) => void): void;
|
|
175
162
|
/**
|
|
176
163
|
* Register a callback for transaction finish.
|
|
177
164
|
* Receives the transaction as argument.
|
|
178
165
|
*/
|
|
179
|
-
on
|
|
166
|
+
on(hook: 'finishTransaction', callback: (transaction: Transaction) => void): void;
|
|
180
167
|
/**
|
|
181
168
|
* Register a callback for transaction start and finish.
|
|
182
169
|
*/
|
|
183
|
-
on
|
|
170
|
+
on(hook: 'beforeEnvelope', callback: (envelope: Envelope) => void): void;
|
|
184
171
|
/**
|
|
185
172
|
* Register a callback for before sending an event.
|
|
186
173
|
* This is called right before an event is sent and should not be used to mutate the event.
|
|
187
174
|
* Receives an Event & EventHint as arguments.
|
|
188
175
|
*/
|
|
189
|
-
on
|
|
176
|
+
on(hook: 'beforeSendEvent', callback: (event: Event, hint?: EventHint | undefined) => void): void;
|
|
190
177
|
/**
|
|
191
178
|
* Register a callback for preprocessing an event,
|
|
192
179
|
* before it is passed to (global) event processors.
|
|
193
180
|
* Receives an Event & EventHint as arguments.
|
|
194
181
|
*/
|
|
195
|
-
on
|
|
182
|
+
on(hook: 'preprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): void;
|
|
196
183
|
/**
|
|
197
184
|
* Register a callback for when an event has been sent.
|
|
198
185
|
*/
|
|
199
|
-
on
|
|
186
|
+
on(hook: 'afterSendEvent', callback: (event: Event, sendResponse: TransportMakeRequestResponse | void) => void): void;
|
|
200
187
|
/**
|
|
201
188
|
* Register a callback before a breadcrumb is added.
|
|
202
189
|
*/
|
|
203
|
-
on
|
|
190
|
+
on(hook: 'beforeAddBreadcrumb', callback: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void): void;
|
|
204
191
|
/**
|
|
205
192
|
* Register a callback when a DSC (Dynamic Sampling Context) is created.
|
|
206
193
|
*/
|
|
207
|
-
on
|
|
194
|
+
on(hook: 'createDsc', callback: (dsc: DynamicSamplingContext) => void): void;
|
|
208
195
|
/**
|
|
209
196
|
* Register a callback when an OpenTelemetry span is ended (in @sentry/opentelemetry-node).
|
|
210
197
|
* The option argument may be mutated to drop the span.
|
|
211
198
|
*/
|
|
212
|
-
on
|
|
199
|
+
on(hook: 'otelSpanEnd', callback: (otelSpan: unknown, mutableOptions: {
|
|
213
200
|
drop: boolean;
|
|
214
201
|
}) => void): void;
|
|
215
202
|
/**
|
|
@@ -217,54 +204,62 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
217
204
|
* This should be used to mutate the event. The options argument can hint
|
|
218
205
|
* about what kind of mutation it expects.
|
|
219
206
|
*/
|
|
220
|
-
on
|
|
207
|
+
on(hook: 'beforeSendFeedback', callback: (feedback: FeedbackEvent, options?: {
|
|
221
208
|
includeReplay?: boolean;
|
|
222
209
|
}) => void): void;
|
|
223
210
|
/**
|
|
224
|
-
* A hook for
|
|
211
|
+
* A hook for the browser tracing integrations to trigger a span start for a page load.
|
|
212
|
+
*/
|
|
213
|
+
on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions) => void): void;
|
|
214
|
+
/**
|
|
215
|
+
* A hook for browser tracing integrations to trigger a span for a navigation.
|
|
225
216
|
*/
|
|
226
|
-
on
|
|
217
|
+
on(hook: 'startNavigationSpan', callback: (options: StartSpanOptions) => void): void;
|
|
227
218
|
/**
|
|
228
|
-
* A hook
|
|
219
|
+
* A hook that is called when the client is flushing
|
|
229
220
|
*/
|
|
230
|
-
on
|
|
221
|
+
on(hook: 'flush', callback: () => void): void;
|
|
222
|
+
/**
|
|
223
|
+
* A hook that is called when the client is closing
|
|
224
|
+
*/
|
|
225
|
+
on(hook: 'close', callback: () => void): void;
|
|
231
226
|
/**
|
|
232
227
|
* Fire a hook event for transaction start.
|
|
233
228
|
* Expects to be given a transaction as the second argument.
|
|
234
229
|
*/
|
|
235
|
-
emit
|
|
230
|
+
emit(hook: 'startTransaction', transaction: Transaction): void;
|
|
236
231
|
/**
|
|
237
232
|
* Fire a hook event for transaction finish.
|
|
238
233
|
* Expects to be given a transaction as the second argument.
|
|
239
234
|
*/
|
|
240
|
-
emit
|
|
241
|
-
emit
|
|
235
|
+
emit(hook: 'finishTransaction', transaction: Transaction): void;
|
|
236
|
+
emit(hook: 'beforeEnvelope', envelope: Envelope): void;
|
|
242
237
|
/**
|
|
243
238
|
* Fire a hook event before sending an event.
|
|
244
239
|
* This is called right before an event is sent and should not be used to mutate the event.
|
|
245
240
|
* Expects to be given an Event & EventHint as the second/third argument.
|
|
246
241
|
*/
|
|
247
|
-
emit
|
|
242
|
+
emit(hook: 'beforeSendEvent', event: Event, hint?: EventHint): void;
|
|
248
243
|
/**
|
|
249
244
|
* Fire a hook event to process events before they are passed to (global) event processors.
|
|
250
245
|
* Expects to be given an Event & EventHint as the second/third argument.
|
|
251
246
|
*/
|
|
252
|
-
emit
|
|
253
|
-
emit
|
|
247
|
+
emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;
|
|
248
|
+
emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse | void): void;
|
|
254
249
|
/**
|
|
255
250
|
* Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.
|
|
256
251
|
*/
|
|
257
|
-
emit
|
|
252
|
+
emit(hook: 'beforeAddBreadcrumb', breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;
|
|
258
253
|
/**
|
|
259
254
|
* Fire a hook for when a DSC (Dynamic Sampling Context) is created. Expects the DSC as second argument.
|
|
260
255
|
*/
|
|
261
|
-
emit
|
|
256
|
+
emit(hook: 'createDsc', dsc: DynamicSamplingContext): void;
|
|
262
257
|
/**
|
|
263
258
|
* Fire a hook for when an OpenTelemetry span is ended (in @sentry/opentelemetry-node).
|
|
264
259
|
* Expects the OTEL span & as second argument, and an option object as third argument.
|
|
265
260
|
* The option argument may be mutated to drop the span.
|
|
266
261
|
*/
|
|
267
|
-
emit
|
|
262
|
+
emit(hook: 'otelSpanEnd', otelSpan: unknown, mutableOptions: {
|
|
268
263
|
drop: boolean;
|
|
269
264
|
}): void;
|
|
270
265
|
/**
|
|
@@ -272,16 +267,24 @@ export interface Client<O extends ClientOptions = ClientOptions> {
|
|
|
272
267
|
* a feedback event as the second argument, and an optional options object as
|
|
273
268
|
* third argument.
|
|
274
269
|
*/
|
|
275
|
-
emit
|
|
270
|
+
emit(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: {
|
|
276
271
|
includeReplay?: boolean;
|
|
277
272
|
}): void;
|
|
278
273
|
/**
|
|
279
|
-
* Emit a hook event for
|
|
274
|
+
* Emit a hook event for browser tracing integrations to trigger a span start for a page load.
|
|
275
|
+
*/
|
|
276
|
+
emit(hook: 'startPageLoadSpan', options: StartSpanOptions): void;
|
|
277
|
+
/**
|
|
278
|
+
* Emit a hook event for browser tracing integrations to trigger a span for a navigation.
|
|
279
|
+
*/
|
|
280
|
+
emit(hook: 'startNavigationSpan', options: StartSpanOptions): void;
|
|
281
|
+
/**
|
|
282
|
+
* Emit a hook event for client flush
|
|
280
283
|
*/
|
|
281
|
-
emit
|
|
284
|
+
emit(hook: 'flush'): void;
|
|
282
285
|
/**
|
|
283
|
-
* Emit a hook event for
|
|
286
|
+
* Emit a hook event for client close
|
|
284
287
|
*/
|
|
285
|
-
emit
|
|
288
|
+
emit(hook: 'close'): void;
|
|
286
289
|
}
|
|
287
290
|
//# sourceMappingURL=client.d.ts.map
|
package/types/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;A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GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;CAG3B"}
|
package/types/datacategory.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type DataCategory = 'default' | 'error' | 'transaction' | 'replay' | 'security' | 'attachment' | 'session' | 'internal' | 'profile' | 'monitor' | 'feedback' | 'unknown'
|
|
1
|
+
export type DataCategory = 'default' | 'error' | 'transaction' | 'replay' | 'security' | 'attachment' | 'session' | 'internal' | 'profile' | 'monitor' | 'feedback' | 'unknown';
|
|
2
2
|
//# sourceMappingURL=datacategory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datacategory.d.ts","sourceRoot":"","sources":["../../src/datacategory.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAEpB,SAAS,GAET,OAAO,GAEP,aAAa,GAEb,QAAQ,GAER,UAAU,GAEV,YAAY,GAEZ,SAAS,GAET,UAAU,GAEV,SAAS,GAET,SAAS,GAET,UAAU,GAEV,SAAS,
|
|
1
|
+
{"version":3,"file":"datacategory.d.ts","sourceRoot":"","sources":["../../src/datacategory.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAEpB,SAAS,GAET,OAAO,GAEP,aAAa,GAEb,QAAQ,GAER,UAAU,GAEV,YAAY,GAEZ,SAAS,GAET,UAAU,GAEV,SAAS,GAET,SAAS,GAET,UAAU,GAEV,SAAS,CAAC"}
|
package/types/envelope.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type { Profile } from './profiling';
|
|
|
7
7
|
import type { ReplayEvent, ReplayRecordingData } from './replay';
|
|
8
8
|
import type { SdkInfo } from './sdkinfo';
|
|
9
9
|
import type { SerializedSession, Session, SessionAggregates } from './session';
|
|
10
|
-
import type { Span } from './span';
|
|
11
10
|
import type { Transaction } from './transaction';
|
|
12
11
|
import type { UserFeedback } from './user';
|
|
13
12
|
export type DynamicSamplingContext = {
|
|
@@ -17,14 +16,10 @@ export type DynamicSamplingContext = {
|
|
|
17
16
|
release?: string;
|
|
18
17
|
environment?: string;
|
|
19
18
|
transaction?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Functonality for segment has been removed.
|
|
22
|
-
*/
|
|
23
|
-
user_segment?: string;
|
|
24
19
|
replay_id?: string;
|
|
25
20
|
sampled?: string;
|
|
26
21
|
};
|
|
27
|
-
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd'
|
|
22
|
+
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd';
|
|
28
23
|
export type BaseEnvelopeHeaders = {
|
|
29
24
|
[key: string]: unknown;
|
|
30
25
|
dsn?: string;
|
|
@@ -82,9 +77,6 @@ type StatsdItemHeaders = {
|
|
|
82
77
|
type ProfileItemHeaders = {
|
|
83
78
|
type: 'profile';
|
|
84
79
|
};
|
|
85
|
-
type SpanItemHeaders = {
|
|
86
|
-
type: 'span';
|
|
87
|
-
};
|
|
88
80
|
export type EventItem = BaseEnvelopeItem<EventItemHeaders, Event>;
|
|
89
81
|
export type AttachmentItem = BaseEnvelopeItem<AttachmentItemHeaders, string | Uint8Array>;
|
|
90
82
|
export type UserFeedbackItem = BaseEnvelopeItem<UserFeedbackItemHeaders, UserFeedback>;
|
|
@@ -96,7 +88,6 @@ type ReplayRecordingItem = BaseEnvelopeItem<ReplayRecordingItemHeaders, ReplayRe
|
|
|
96
88
|
export type StatsdItem = BaseEnvelopeItem<StatsdItemHeaders, string>;
|
|
97
89
|
export type FeedbackItem = BaseEnvelopeItem<FeedbackItemHeaders, FeedbackEvent>;
|
|
98
90
|
export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>;
|
|
99
|
-
export type SpanItem = BaseEnvelopeItem<SpanItemHeaders, Span>;
|
|
100
91
|
export type EventEnvelopeHeaders = {
|
|
101
92
|
event_id: string;
|
|
102
93
|
sent_at: string;
|
|
@@ -111,15 +102,13 @@ type CheckInEnvelopeHeaders = {
|
|
|
111
102
|
type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
112
103
|
type ReplayEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
113
104
|
type StatsdEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
114
|
-
type SpanEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
115
105
|
export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem>;
|
|
116
106
|
export type SessionEnvelope = BaseEnvelope<SessionEnvelopeHeaders, SessionItem>;
|
|
117
107
|
export type ClientReportEnvelope = BaseEnvelope<ClientReportEnvelopeHeaders, ClientReportItem>;
|
|
118
108
|
export type ReplayEnvelope = [ReplayEnvelopeHeaders, [ReplayEventItem, ReplayRecordingItem]];
|
|
119
109
|
export type CheckInEnvelope = BaseEnvelope<CheckInEnvelopeHeaders, CheckInItem>;
|
|
120
110
|
export type StatsdEnvelope = BaseEnvelope<StatsdEnvelopeHeaders, StatsdItem>;
|
|
121
|
-
export type
|
|
122
|
-
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope | SpanEnvelope;
|
|
111
|
+
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope;
|
|
123
112
|
export type EnvelopeItem = Envelope[1][number];
|
|
124
113
|
export {};
|
|
125
114
|
//# sourceMappingURL=envelope.d.ts.map
|
package/types/envelope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/envelope.ts"],"names":[],"mappings":"AAA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AAW,CAC3E,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,2BAA2B,EAAE,gBAAgB,CAAC,CAAC;AAC/F,MAAM,MAAM,cAAc,GAAG,CAAC,qBAAqB,EAAE,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,GAChB,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,eAAe,GACf,cAAc,CAAC;AACnB,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/types/event.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { Primitive } from './misc';
|
|
|
10
10
|
import type { Request } from './request';
|
|
11
11
|
import type { CaptureContext } from './scope';
|
|
12
12
|
import type { SdkInfo } from './sdkinfo';
|
|
13
|
-
import type {
|
|
13
|
+
import type { SeverityLevel } from './severity';
|
|
14
14
|
import type { MetricSummary, Span, SpanJSON } from './span';
|
|
15
15
|
import type { Thread } from './thread';
|
|
16
16
|
import type { TransactionSource } from './transaction';
|
|
@@ -25,7 +25,7 @@ export interface Event {
|
|
|
25
25
|
};
|
|
26
26
|
timestamp?: number;
|
|
27
27
|
start_timestamp?: number;
|
|
28
|
-
level?:
|
|
28
|
+
level?: SeverityLevel;
|
|
29
29
|
platform?: string;
|
|
30
30
|
logger?: string;
|
|
31
31
|
server_name?: string;
|
package/types/event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":"A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C,CAAC;IAC/B,kBAAkB,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC;IAC3D;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB"}
|
package/types/hub.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Integration, IntegrationClass } from './integration';
|
|
|
6
6
|
import type { Primitive } from './misc';
|
|
7
7
|
import type { Scope } from './scope';
|
|
8
8
|
import type { Session } from './session';
|
|
9
|
-
import type {
|
|
9
|
+
import type { SeverityLevel } from './severity';
|
|
10
10
|
import type { CustomSamplingContext, Transaction, TransactionContext } from './transaction';
|
|
11
11
|
import type { User } from './user';
|
|
12
12
|
/**
|
|
@@ -73,7 +73,7 @@ export interface Hub {
|
|
|
73
73
|
* Returns the client of the top stack.
|
|
74
74
|
* @deprecated Use `Sentry.getClient()` instead.
|
|
75
75
|
*/
|
|
76
|
-
getClient():
|
|
76
|
+
getClient<C extends Client>(): C | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* Returns the scope of the top stack.
|
|
79
79
|
* @deprecated Use `Sentry.getCurrentScope()` instead.
|
|
@@ -106,7 +106,7 @@ export interface Hub {
|
|
|
106
106
|
*
|
|
107
107
|
* @deprecated Use `Sentry.captureMessage()` instead.
|
|
108
108
|
*/
|
|
109
|
-
captureMessage(message: string, level?:
|
|
109
|
+
captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string;
|
|
110
110
|
/**
|
|
111
111
|
* Captures a manually created event and sends it to Sentry.
|
|
112
112
|
*
|
|
@@ -116,14 +116,6 @@ export interface Hub {
|
|
|
116
116
|
* @deprecated Use `Sentry.captureEvent()` instead.
|
|
117
117
|
*/
|
|
118
118
|
captureEvent(event: Event, hint?: EventHint): string;
|
|
119
|
-
/**
|
|
120
|
-
* This is the getter for lastEventId.
|
|
121
|
-
*
|
|
122
|
-
* @returns The last event id of a captured event.
|
|
123
|
-
*
|
|
124
|
-
* @deprecated This will be removed in v8.
|
|
125
|
-
*/
|
|
126
|
-
lastEventId(): string | undefined;
|
|
127
119
|
/**
|
|
128
120
|
* Records a new breadcrumb which will be attached to future events.
|
|
129
121
|
*
|
|
@@ -190,35 +182,12 @@ export interface Hub {
|
|
|
190
182
|
setContext(name: string, context: {
|
|
191
183
|
[key: string]: any;
|
|
192
184
|
} | null): void;
|
|
193
|
-
/**
|
|
194
|
-
* Callback to set context information onto the scope.
|
|
195
|
-
*
|
|
196
|
-
* @param callback Callback function that receives Scope.
|
|
197
|
-
* @deprecated Use `getScope()` directly.
|
|
198
|
-
*/
|
|
199
|
-
configureScope(callback: (scope: Scope) => void): void;
|
|
200
|
-
/**
|
|
201
|
-
* For the duration of the callback, this hub will be set as the global current Hub.
|
|
202
|
-
* This function is useful if you want to run your own client and hook into an already initialized one
|
|
203
|
-
* e.g.: Reporting issues to your own sentry when running in your component while still using the users configuration.
|
|
204
|
-
*
|
|
205
|
-
* TODO v8: This will be merged with `withScope()`
|
|
206
|
-
*/
|
|
207
|
-
run(callback: (hub: Hub) => void): void;
|
|
208
185
|
/**
|
|
209
186
|
* Returns the integration if installed on the current client.
|
|
210
187
|
*
|
|
211
188
|
* @deprecated Use `Sentry.getClient().getIntegration()` instead.
|
|
212
189
|
*/
|
|
213
190
|
getIntegration<T extends Integration>(integration: IntegrationClass<T>): T | null;
|
|
214
|
-
/**
|
|
215
|
-
* Returns all trace headers that are currently on the top scope.
|
|
216
|
-
*
|
|
217
|
-
* @deprecated Use `spanToTraceHeader()` instead.
|
|
218
|
-
*/
|
|
219
|
-
traceHeaders(): {
|
|
220
|
-
[key: string]: string;
|
|
221
|
-
};
|
|
222
191
|
/**
|
|
223
192
|
* Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
|
|
224
193
|
*
|
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,
|
|
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,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6,7 +6,7 @@ export type { Context, Contexts, DeviceContext, OsContext, AppContext, CultureCo
|
|
|
6
6
|
export type { DataCategory } from './datacategory';
|
|
7
7
|
export type { DsnComponents, DsnLike, DsnProtocol } from './dsn';
|
|
8
8
|
export type { DebugImage, DebugMeta } from './debugMeta';
|
|
9
|
-
export type { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, StatsdItem, StatsdEnvelope, ProfileItem,
|
|
9
|
+
export type { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, StatsdItem, StatsdEnvelope, ProfileItem, } from './envelope';
|
|
10
10
|
export type { ExtendedError } from './error';
|
|
11
11
|
export type { Event, EventHint, EventType, ErrorEvent, TransactionEvent, SerializedEvent } from './event';
|
|
12
12
|
export type { EventProcessor } from './eventprocessor';
|
|
@@ -28,11 +28,10 @@ export type { CaptureContext, Scope, ScopeContext, ScopeData } from './scope';
|
|
|
28
28
|
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
|
-
export type {
|
|
31
|
+
export type { SeverityLevel } from './severity';
|
|
32
32
|
export type { Span, SpanContext, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, MetricSummary, } from './span';
|
|
33
33
|
export type { StackFrame } from './stackframe';
|
|
34
34
|
export type { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './stacktrace';
|
|
35
|
-
export type { TextEncoderInternal } from './textencoder';
|
|
36
35
|
export type { PropagationContext, TracePropagationTargets } from './tracing';
|
|
37
36
|
export type { StartSpanOptions } from './startSpanOptions';
|
|
38
37
|
export type { CustomSamplingContext, SamplingContext, TraceparentData, Transaction, TransactionContext, TransactionMetadata, TransactionSource, } from './transaction';
|
|
@@ -42,7 +41,6 @@ export type { Transport, TransportRequest, TransportMakeRequestResponse, Interna
|
|
|
42
41
|
export type { User, UserFeedback } from './user';
|
|
43
42
|
export type { WebFetchHeaders, WebFetchRequest } from './webfetchapi';
|
|
44
43
|
export type { WrappedFunction } from './wrappedfunction';
|
|
45
|
-
export type { Instrumenter } from './instrumenter';
|
|
46
44
|
export type { HandlerDataFetch, HandlerDataXhr, HandlerDataDom, HandlerDataConsole, HandlerDataHistory, HandlerDataError, HandlerDataUnhandledRejection, ConsoleLevel, SentryXhrData, SentryWrappedXMLHttpRequest, } from './instrument';
|
|
47
45
|
export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './browseroptions';
|
|
48
46
|
export type { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn } from './checkin';
|