@sentry/angular 7.107.0 → 8.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -23
- package/bundles/sentry-angular.umd.js +99 -126
- package/bundles/sentry-angular.umd.js.map +1 -1
- package/bundles/sentry-angular.umd.min.js +1 -1
- package/bundles/sentry-angular.umd.min.js.map +1 -1
- package/errorhandler.d.ts +2 -2
- package/esm2015/errorhandler.js +4 -5
- package/esm2015/index.js +2 -9
- package/esm2015/sdk.js +4 -4
- package/esm2015/tracing.js +87 -111
- package/fesm2015/sentry-angular.js +94 -118
- package/fesm2015/sentry-angular.js.map +1 -1
- package/index.d.ts +1 -3
- package/package.json +12 -6
- package/sentry-angular.metadata.json +1 -1
- package/tracing.d.ts +45 -20
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Sentry from '@sentry/browser';
|
|
2
|
-
import { getDefaultIntegrations, init as init$1, setContext,
|
|
2
|
+
import { getDefaultIntegrations, init as init$1, setContext, browserTracingIntegration as browserTracingIntegration$1, spanToJSON, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getClient, startBrowserTracingNavigationSpan, startInactiveSpan, getCurrentScope, getActiveSpan, getRootSpan } from '@sentry/browser';
|
|
3
3
|
export * from '@sentry/browser';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { VERSION, Injectable, Inject, Directive, Input, NgModule } from '@angular/core';
|
|
6
|
-
import { applySdkMetadata
|
|
6
|
+
import { applySdkMetadata } from '@sentry/core';
|
|
7
7
|
import { logger, isString, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/utils';
|
|
8
8
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
9
9
|
import * as i1 from '@angular/router';
|
|
@@ -27,14 +27,14 @@ const IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY
|
|
|
27
27
|
*/
|
|
28
28
|
function init(options) {
|
|
29
29
|
const opts = Object.assign({
|
|
30
|
-
// Filter out
|
|
31
|
-
//
|
|
30
|
+
// Filter out BrowserApiErrors integration as it interferes with our Angular `ErrorHandler`:
|
|
31
|
+
// BrowserApiErrors would catch certain errors before they reach the `ErrorHandler` and thus provide a
|
|
32
32
|
// lower fidelity error than what `SentryErrorHandler` (see errorhandler.ts) would provide.
|
|
33
33
|
// see:
|
|
34
34
|
// - https://github.com/getsentry/sentry-javascript/issues/5417#issuecomment-1453407097
|
|
35
35
|
// - https://github.com/getsentry/sentry-javascript/issues/2744
|
|
36
36
|
defaultIntegrations: getDefaultIntegrations(options).filter(integration => {
|
|
37
|
-
return integration.name !== '
|
|
37
|
+
return integration.name !== 'BrowserApiErrors';
|
|
38
38
|
}) }, options);
|
|
39
39
|
applySdkMetadata(opts, 'angular');
|
|
40
40
|
checkAndSetAngularVersion();
|
|
@@ -137,17 +137,16 @@ class SentryErrorHandler {
|
|
|
137
137
|
// Optionally show user dialog to provide details on what happened.
|
|
138
138
|
if (this._options.showDialog) {
|
|
139
139
|
const client = Sentry.getClient();
|
|
140
|
-
if (client &&
|
|
140
|
+
if (client && !this._registeredAfterSendEventHandler) {
|
|
141
141
|
client.on('afterSendEvent', (event) => {
|
|
142
|
-
if (!event.type) {
|
|
143
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
142
|
+
if (!event.type && event.event_id) {
|
|
144
143
|
Sentry.showReportDialog(Object.assign(Object.assign({}, this._options.dialogOptions), { eventId: event.event_id }));
|
|
145
144
|
}
|
|
146
145
|
});
|
|
147
146
|
// We only want to register this hook once in the lifetime of the error handler
|
|
148
147
|
this._registeredAfterSendEventHandler = true;
|
|
149
148
|
}
|
|
150
|
-
else if (!client
|
|
149
|
+
else if (!client) {
|
|
151
150
|
Sentry.showReportDialog(Object.assign(Object.assign({}, this._options.dialogOptions), { eventId }));
|
|
152
151
|
}
|
|
153
152
|
}
|
|
@@ -199,38 +198,8 @@ const ANGULAR_INIT_OP = 'ui.angular.init';
|
|
|
199
198
|
const ANGULAR_OP = 'ui.angular';
|
|
200
199
|
|
|
201
200
|
let instrumentationInitialized;
|
|
202
|
-
let stashedStartTransaction;
|
|
203
|
-
let stashedStartTransactionOnLocationChange;
|
|
204
|
-
let hooksBasedInstrumentation = false;
|
|
205
201
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* @deprecated Use `browserTracingIntegration()` instead, which includes Angular-specific instrumentation out of the box.
|
|
209
|
-
*/
|
|
210
|
-
function routingInstrumentation(customStartTransaction, startTransactionOnPageLoad = true, startTransactionOnLocationChange = true) {
|
|
211
|
-
instrumentationInitialized = true;
|
|
212
|
-
stashedStartTransaction = customStartTransaction;
|
|
213
|
-
stashedStartTransactionOnLocationChange = startTransactionOnLocationChange;
|
|
214
|
-
if (startTransactionOnPageLoad && WINDOW && WINDOW.location) {
|
|
215
|
-
customStartTransaction({
|
|
216
|
-
name: WINDOW.location.pathname,
|
|
217
|
-
op: 'pageload',
|
|
218
|
-
origin: 'auto.pageload.angular',
|
|
219
|
-
attributes: {
|
|
220
|
-
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
|
|
221
|
-
},
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Creates routing instrumentation for Angular Router.
|
|
227
|
-
*
|
|
228
|
-
* @deprecated Use `browserTracingIntegration()` instead, which includes Angular-specific instrumentation out of the box.
|
|
229
|
-
*/
|
|
230
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
231
|
-
const instrumentAngularRouting = routingInstrumentation;
|
|
232
|
-
/**
|
|
233
|
-
* A custom BrowserTracing integration for Angular.
|
|
202
|
+
* A custom browser tracing integration for Angular.
|
|
234
203
|
*
|
|
235
204
|
* Use this integration in combination with `TraceService`
|
|
236
205
|
*/
|
|
@@ -239,18 +208,19 @@ function browserTracingIntegration(options = {}) {
|
|
|
239
208
|
// That way, the TraceService will not actually do anything, functionally disabling this.
|
|
240
209
|
if (options.instrumentNavigation !== false) {
|
|
241
210
|
instrumentationInitialized = true;
|
|
242
|
-
hooksBasedInstrumentation = true;
|
|
243
211
|
}
|
|
244
212
|
return browserTracingIntegration$1(Object.assign(Object.assign({}, options), { instrumentNavigation: false }));
|
|
245
213
|
}
|
|
246
214
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.
|
|
215
|
+
* This function is extracted to make unit testing easier.
|
|
250
216
|
*/
|
|
251
|
-
function
|
|
252
|
-
|
|
253
|
-
|
|
217
|
+
function _updateSpanAttributesForParametrizedUrl(route, span) {
|
|
218
|
+
const attributes = (span && spanToJSON(span).data) || {};
|
|
219
|
+
if (span && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') {
|
|
220
|
+
span.updateName(route);
|
|
221
|
+
span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
|
|
222
|
+
span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, `auto.${spanToJSON(span).op}.angular`);
|
|
223
|
+
}
|
|
254
224
|
}
|
|
255
225
|
/**
|
|
256
226
|
* Angular's Service responsible for hooking into Angular Router and tracking current navigation process.
|
|
@@ -271,51 +241,33 @@ class TraceService {
|
|
|
271
241
|
}
|
|
272
242
|
const client = getClient();
|
|
273
243
|
const strippedUrl = stripUrlQueryAndFragment(navigationEvent.url);
|
|
274
|
-
if (client
|
|
275
|
-
|
|
244
|
+
if (client) {
|
|
245
|
+
// see comment in `_isPageloadOngoing` for rationale
|
|
246
|
+
if (!this._isPageloadOngoing()) {
|
|
276
247
|
startBrowserTracingNavigationSpan(client, {
|
|
277
248
|
name: strippedUrl,
|
|
278
|
-
origin: 'auto.navigation.angular',
|
|
279
249
|
attributes: {
|
|
250
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.navigation.angular',
|
|
280
251
|
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
|
|
281
252
|
},
|
|
282
253
|
});
|
|
283
254
|
}
|
|
284
|
-
|
|
255
|
+
else {
|
|
256
|
+
// The first time we end up here, we set the pageload flag to false
|
|
257
|
+
// Subsequent navigations are going to get their own navigation root span
|
|
258
|
+
// even if the pageload root span is still ongoing.
|
|
259
|
+
this._pageloadOngoing = false;
|
|
260
|
+
}
|
|
285
261
|
this._routingSpan =
|
|
286
262
|
startInactiveSpan({
|
|
287
263
|
name: `${navigationEvent.url}`,
|
|
288
264
|
op: ANGULAR_ROUTING_OP,
|
|
289
|
-
|
|
290
|
-
tags: Object.assign({ 'routing.instrumentation': '@sentry/angular', url: strippedUrl }, (navigationEvent.navigationTrigger && {
|
|
265
|
+
attributes: Object.assign({ [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular', [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', url: strippedUrl }, (navigationEvent.navigationTrigger && {
|
|
291
266
|
navigationTrigger: navigationEvent.navigationTrigger,
|
|
292
267
|
})),
|
|
293
268
|
}) || null;
|
|
294
269
|
return;
|
|
295
270
|
}
|
|
296
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
297
|
-
let activeTransaction = getActiveTransaction();
|
|
298
|
-
if (!activeTransaction && stashedStartTransactionOnLocationChange) {
|
|
299
|
-
activeTransaction = stashedStartTransaction({
|
|
300
|
-
name: strippedUrl,
|
|
301
|
-
op: 'navigation',
|
|
302
|
-
origin: 'auto.navigation.angular',
|
|
303
|
-
attributes: {
|
|
304
|
-
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
|
|
305
|
-
},
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
if (activeTransaction) {
|
|
309
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
310
|
-
this._routingSpan = activeTransaction.startChild({
|
|
311
|
-
description: `${navigationEvent.url}`,
|
|
312
|
-
op: ANGULAR_ROUTING_OP,
|
|
313
|
-
origin: 'auto.ui.angular',
|
|
314
|
-
tags: Object.assign({ 'routing.instrumentation': '@sentry/angular', url: strippedUrl }, (navigationEvent.navigationTrigger && {
|
|
315
|
-
navigationTrigger: navigationEvent.navigationTrigger,
|
|
316
|
-
})),
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
271
|
}));
|
|
320
272
|
// The ResolveEnd event is fired when the Angular router has resolved the URL and
|
|
321
273
|
// the parameter<->value mapping. It holds the new resolved router state with
|
|
@@ -327,15 +279,12 @@ class TraceService {
|
|
|
327
279
|
// a navigation.
|
|
328
280
|
this.resEnd$ = this._router.events.pipe(filter((event) => event instanceof ResolveEnd), tap(event => {
|
|
329
281
|
const route = getParameterizedRouteFromSnapshot(event.state.root);
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
// TODO (v8 / #5416): revisit the source condition. Do we want to make the parameterized route the default?
|
|
333
|
-
const attributes = (transaction && spanToJSON(transaction).data) || {};
|
|
334
|
-
if (transaction && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') {
|
|
335
|
-
transaction.updateName(route);
|
|
336
|
-
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
|
|
337
|
-
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, `auto.${spanToJSON(transaction).op}.angular`);
|
|
282
|
+
if (route) {
|
|
283
|
+
getCurrentScope().setTransactionName(route);
|
|
338
284
|
}
|
|
285
|
+
const activeSpan = getActiveSpan();
|
|
286
|
+
const rootSpan = activeSpan && getRootSpan(activeSpan);
|
|
287
|
+
_updateSpanAttributesForParametrizedUrl(route, rootSpan);
|
|
339
288
|
}));
|
|
340
289
|
this.navEnd$ = this._router.events.pipe(filter(event => event instanceof NavigationEnd || event instanceof NavigationCancel || event instanceof NavigationError), tap(() => {
|
|
341
290
|
if (this._routingSpan) {
|
|
@@ -347,6 +296,7 @@ class TraceService {
|
|
|
347
296
|
}
|
|
348
297
|
}));
|
|
349
298
|
this._routingSpan = null;
|
|
299
|
+
this._pageloadOngoing = true;
|
|
350
300
|
this._subscription = new Subscription();
|
|
351
301
|
this._subscription.add(this.navStart$.subscribe());
|
|
352
302
|
this._subscription.add(this.resEnd$.subscribe());
|
|
@@ -359,6 +309,41 @@ class TraceService {
|
|
|
359
309
|
ngOnDestroy() {
|
|
360
310
|
this._subscription.unsubscribe();
|
|
361
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* We only _avoid_ creating a navigation root span in one case:
|
|
314
|
+
*
|
|
315
|
+
* There is an ongoing pageload span AND the router didn't yet emit the first navigation start event
|
|
316
|
+
*
|
|
317
|
+
* The first navigation start event will create the child routing span
|
|
318
|
+
* and update the pageload root span name on ResolveEnd.
|
|
319
|
+
*
|
|
320
|
+
* There's an edge case we need to avoid here: If the router fires the first navigation start event
|
|
321
|
+
* _after_ the pageload root span finished. This is why we check for the pageload root span.
|
|
322
|
+
* Possible real-world scenario: Angular application and/or router is bootstrapped after the pageload
|
|
323
|
+
* idle root span finished
|
|
324
|
+
*
|
|
325
|
+
* The overall rationale is:
|
|
326
|
+
* - if we already avoided creating a navigation root span once, we don't avoid it again
|
|
327
|
+
* (i.e. set `_pageloadOngoing` to `false`)
|
|
328
|
+
* - if `_pageloadOngoing` is already `false`, create a navigation root span
|
|
329
|
+
* - if there's no active/pageload root span, create a navigation root span
|
|
330
|
+
* - only if there's an ongoing pageload root span AND `_pageloadOngoing` is still `true,
|
|
331
|
+
* don't create a navigation root span
|
|
332
|
+
*/
|
|
333
|
+
_isPageloadOngoing() {
|
|
334
|
+
if (!this._pageloadOngoing) {
|
|
335
|
+
// pageload is already finished, no need to update
|
|
336
|
+
return false;
|
|
337
|
+
}
|
|
338
|
+
const activeSpan = getActiveSpan();
|
|
339
|
+
if (!activeSpan) {
|
|
340
|
+
this._pageloadOngoing = false;
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
const rootSpan = getRootSpan(activeSpan);
|
|
344
|
+
this._pageloadOngoing = spanToJSON(rootSpan).op === 'pageload';
|
|
345
|
+
return this._pageloadOngoing;
|
|
346
|
+
}
|
|
362
347
|
}
|
|
363
348
|
TraceService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TraceService_Factory() { return new TraceService(i0.ɵɵinject(i1.Router)); }, token: TraceService, providedIn: "root" });
|
|
364
349
|
TraceService.decorators = [
|
|
@@ -380,14 +365,11 @@ class TraceDirective {
|
|
|
380
365
|
if (!this.componentName) {
|
|
381
366
|
this.componentName = UNKNOWN_COMPONENT;
|
|
382
367
|
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
387
|
-
this._tracingSpan = activeTransaction.startChild({
|
|
388
|
-
description: `<${this.componentName}>`,
|
|
368
|
+
if (getActiveSpan()) {
|
|
369
|
+
this._tracingSpan = startInactiveSpan({
|
|
370
|
+
name: `<${this.componentName}>`,
|
|
389
371
|
op: ANGULAR_INIT_OP,
|
|
390
|
-
|
|
372
|
+
attributes: { [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_directive' },
|
|
391
373
|
});
|
|
392
374
|
}
|
|
393
375
|
}
|
|
@@ -421,24 +403,21 @@ TraceModule.decorators = [
|
|
|
421
403
|
/**
|
|
422
404
|
* Decorator function that can be used to capture initialization lifecycle of the whole component.
|
|
423
405
|
*/
|
|
424
|
-
function
|
|
406
|
+
function TraceClass(options) {
|
|
425
407
|
let tracingSpan;
|
|
426
408
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
427
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
428
409
|
return target => {
|
|
429
410
|
const originalOnInit = target.prototype.ngOnInit;
|
|
430
411
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
431
412
|
target.prototype.ngOnInit = function (...args) {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
});
|
|
441
|
-
}
|
|
413
|
+
tracingSpan = startInactiveSpan({
|
|
414
|
+
onlyIfParent: true,
|
|
415
|
+
name: `<${options && options.name ? options.name : 'unnamed'}>`,
|
|
416
|
+
op: ANGULAR_INIT_OP,
|
|
417
|
+
attributes: {
|
|
418
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_class_decorator',
|
|
419
|
+
},
|
|
420
|
+
});
|
|
442
421
|
if (originalOnInit) {
|
|
443
422
|
return originalOnInit.apply(this, args);
|
|
444
423
|
}
|
|
@@ -459,25 +438,22 @@ function TraceClassDecorator() {
|
|
|
459
438
|
/**
|
|
460
439
|
* Decorator function that can be used to capture a single lifecycle methods of the component.
|
|
461
440
|
*/
|
|
462
|
-
function
|
|
463
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
441
|
+
function TraceMethod(options) {
|
|
442
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
464
443
|
return (target, propertyKey, descriptor) => {
|
|
465
444
|
const originalMethod = descriptor.value;
|
|
466
445
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
467
446
|
descriptor.value = function (...args) {
|
|
468
447
|
const now = timestampInSeconds();
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
startTimestamp: now,
|
|
479
|
-
});
|
|
480
|
-
}
|
|
448
|
+
startInactiveSpan({
|
|
449
|
+
onlyIfParent: true,
|
|
450
|
+
name: `<${options && options.name ? options.name : 'unnamed'}>`,
|
|
451
|
+
op: `${ANGULAR_OP}.${String(propertyKey)}`,
|
|
452
|
+
startTime: now,
|
|
453
|
+
attributes: {
|
|
454
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_method_decorator',
|
|
455
|
+
},
|
|
456
|
+
}).end(now);
|
|
481
457
|
if (originalMethod) {
|
|
482
458
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
483
459
|
return originalMethod.apply(this, args);
|
|
@@ -514,5 +490,5 @@ function getParameterizedRouteFromSnapshot(route) {
|
|
|
514
490
|
* Generated bundle index. Do not edit.
|
|
515
491
|
*/
|
|
516
492
|
|
|
517
|
-
export { SentryErrorHandler,
|
|
493
|
+
export { SentryErrorHandler, TraceClass, TraceDirective, TraceMethod, TraceModule, TraceService, browserTracingIntegration, createErrorHandler, init };
|
|
518
494
|
//# sourceMappingURL=sentry-angular.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry-angular.js","sources":["../../src/flags.ts","../../src/sdk.ts","../../src/zone.ts","../../src/errorhandler.ts","../../src/constants.ts","../../src/tracing.ts","../../src/sentry-angular.ts"],"sourcesContent":["/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * We define \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during our, or the user's\n * build process. Take care when introducing new flags - they must not throw if they are not replaced. See the Debug\n * Build Flags section in CONTRIBUTING.md.\n */\n\ndeclare const __SENTRY_DEBUG__: boolean;\n\n/** Flag that is true for debug builds, false otherwise. */\nexport const IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;\n","import { VERSION } from '@angular/core';\nimport type { BrowserOptions } from '@sentry/browser';\nimport { getDefaultIntegrations, init as browserInit, setContext } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\nimport { logger } from '@sentry/utils';\n\nimport { IS_DEBUG_BUILD } from './flags';\n\n/**\n * Inits the Angular SDK\n */\nexport function init(options: BrowserOptions): void {\n const opts = {\n // Filter out TryCatch integration as it interferes with our Angular `ErrorHandler`:\n // TryCatch would catch certain errors before they reach the `ErrorHandler` and thus provide a\n // lower fidelity error than what `SentryErrorHandler` (see errorhandler.ts) would provide.\n // see:\n // - https://github.com/getsentry/sentry-javascript/issues/5417#issuecomment-1453407097\n // - https://github.com/getsentry/sentry-javascript/issues/2744\n defaultIntegrations: getDefaultIntegrations(options).filter(integration => {\n return integration.name !== 'TryCatch';\n }),\n ...options,\n };\n\n applySdkMetadata(opts, 'angular');\n\n checkAndSetAngularVersion();\n browserInit(opts);\n}\n\nfunction checkAndSetAngularVersion(): void {\n const ANGULAR_MINIMUM_VERSION = 10;\n\n const angularVersion = VERSION && VERSION.major ? parseInt(VERSION.major, 10) : undefined;\n\n if (angularVersion) {\n if (angularVersion < ANGULAR_MINIMUM_VERSION) {\n IS_DEBUG_BUILD &&\n logger.warn(\n `The Sentry SDK does not officially support Angular ${angularVersion}.`,\n `This version of the Sentry SDK supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`,\n 'Please consider upgrading your Angular version or downgrading the Sentry SDK.',\n );\n }\n setContext('angular', { version: angularVersion });\n }\n}\n","// That's the `global.Zone` exposed when the `zone.js` package is used.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ndeclare const Zone: any;\n\n// There're 2 types of Angular applications:\n// 1) zone-full (by default)\n// 2) zone-less\n// The developer can avoid importing the `zone.js` package and tells Angular that\n// he is responsible for running the change detection by himself. This is done by\n// \"nooping\" the zone through `CompilerOptions` when bootstrapping the root module.\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\nconst isNgZoneEnabled = typeof Zone !== 'undefined' && !!Zone.current;\n\n/**\n * The function that does the same job as `NgZone.runOutsideAngular`.\n */\nexport function runOutsideAngular<T>(callback: () => T): T {\n // The `Zone.root.run` basically will run the `callback` in the most parent zone.\n // Any asynchronous API used inside the `callback` won't catch Angular's zone\n // since `Zone.current` will reference `Zone.root`.\n // The Angular's zone is forked from the `Zone.root`. In this case, `zone.js` won't\n // trigger change detection, and `ApplicationRef.tick()` will not be run.\n // Caretaker note: we're using `Zone.root` except `NgZone.runOutsideAngular` since this\n // will require injecting the `NgZone` facade. That will create a breaking change for\n // projects already using the `@sentry/angular`.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return isNgZoneEnabled ? Zone.root.run(callback) : callback();\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport type { ErrorHandler as AngularErrorHandler } from '@angular/core';\nimport { Inject, Injectable } from '@angular/core';\nimport * as Sentry from '@sentry/browser';\nimport type { Event } from '@sentry/types';\nimport { isString } from '@sentry/utils';\n\nimport { runOutsideAngular } from './zone';\n\n/**\n * Options used to configure the behavior of the Angular ErrorHandler.\n */\nexport interface ErrorHandlerOptions {\n logErrors?: boolean;\n showDialog?: boolean;\n // eslint-disable-next-line deprecation/deprecation\n dialogOptions?: Omit<Sentry.ReportDialogOptions, 'eventId'>;\n /**\n * Custom implementation of error extraction from the raw value captured by the Angular.\n * @param error Value captured by Angular's ErrorHandler provider\n * @param defaultExtractor Default implementation that can be used as the fallback in case of custom implementation\n */\n extractor?(error: unknown, defaultExtractor: (error: unknown) => unknown): unknown;\n}\n\n// https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts\nfunction tryToUnwrapZonejsError(error: unknown): unknown | Error {\n // TODO: once Angular14 is the minimum requirement ERROR_ORIGINAL_ERROR and\n // getOriginalError from error.ts can be used directly.\n return error && (error as { ngOriginalError: Error }).ngOriginalError\n ? (error as { ngOriginalError: Error }).ngOriginalError\n : error;\n}\n\nfunction extractHttpModuleError(error: HttpErrorResponse): string | Error {\n // The `error` property of http exception can be either an `Error` object, which we can use directly...\n if (isErrorOrErrorLikeObject(error.error)) {\n return error.error;\n }\n\n // ... or an`ErrorEvent`, which can provide us with the message but no stack...\n if (error.error instanceof ErrorEvent && error.error.message) {\n return error.error.message;\n }\n\n // ...or the request body itself, which we can use as a message instead.\n if (typeof error.error === 'string') {\n return `Server returned code ${error.status} with body \"${error.error}\"`;\n }\n\n // If we don't have any detailed information, fallback to the request message itself.\n return error.message;\n}\n\ntype ErrorCandidate = {\n name?: unknown;\n message?: unknown;\n stack?: unknown;\n};\n\nfunction isErrorOrErrorLikeObject(value: unknown): value is Error {\n if (value instanceof Error) {\n return true;\n }\n\n if (value === null || typeof value !== 'object') {\n return false;\n }\n\n const candidate = value as ErrorCandidate;\n\n return (\n isString(candidate.name) &&\n isString(candidate.message) &&\n (undefined === candidate.stack || isString(candidate.stack))\n );\n}\n\n/**\n * Implementation of Angular's ErrorHandler provider that can be used as a drop-in replacement for the stock one.\n */\n@Injectable({ providedIn: 'root' })\nclass SentryErrorHandler implements AngularErrorHandler {\n protected readonly _options: ErrorHandlerOptions;\n\n /* indicates if we already registered our the afterSendEvent handler */\n private _registeredAfterSendEventHandler;\n\n public constructor(@Inject('errorHandlerOptions') options?: ErrorHandlerOptions) {\n this._registeredAfterSendEventHandler = false;\n\n this._options = {\n logErrors: true,\n ...options,\n };\n }\n\n /**\n * Method called for every value captured through the ErrorHandler\n */\n public handleError(error: unknown): void {\n const extractedError = this._extractError(error) || 'Handled unknown error';\n\n // Capture handled exception and send it to Sentry.\n const eventId = runOutsideAngular(() =>\n Sentry.captureException(extractedError, {\n mechanism: { type: 'angular', handled: false },\n }),\n );\n\n // When in development mode, log the error to console for immediate feedback.\n if (this._options.logErrors) {\n // eslint-disable-next-line no-console\n console.error(extractedError);\n }\n\n // Optionally show user dialog to provide details on what happened.\n if (this._options.showDialog) {\n const client = Sentry.getClient();\n\n if (client && client.on && !this._registeredAfterSendEventHandler) {\n client.on('afterSendEvent', (event: Event) => {\n if (!event.type) {\n // eslint-disable-next-line deprecation/deprecation\n Sentry.showReportDialog({ ...this._options.dialogOptions, eventId: event.event_id });\n }\n });\n\n // We only want to register this hook once in the lifetime of the error handler\n this._registeredAfterSendEventHandler = true;\n } else if (!client || !client.on) {\n Sentry.showReportDialog({ ...this._options.dialogOptions, eventId });\n }\n }\n }\n\n /**\n * Used to pull a desired value that will be used to capture an event out of the raw value captured by ErrorHandler.\n */\n protected _extractError(error: unknown): unknown {\n // Allow custom overrides of extracting function\n if (this._options.extractor) {\n const defaultExtractor = this._defaultExtractor.bind(this);\n return this._options.extractor(error, defaultExtractor);\n }\n\n return this._defaultExtractor(error);\n }\n\n /**\n * Default implementation of error extraction that handles default error wrapping, HTTP responses, ErrorEvent and few other known cases.\n */\n protected _defaultExtractor(errorCandidate: unknown): unknown {\n const error = tryToUnwrapZonejsError(errorCandidate);\n\n // If it's http module error, extract as much information from it as we can.\n if (error instanceof HttpErrorResponse) {\n return extractHttpModuleError(error);\n }\n\n // We can handle messages and Error objects directly.\n if (typeof error === 'string' || isErrorOrErrorLikeObject(error)) {\n return error;\n }\n\n // Nothing was extracted, fallback to default error message.\n return null;\n }\n}\n\n/**\n * Factory function that creates an instance of a preconfigured ErrorHandler provider.\n */\nfunction createErrorHandler(config?: ErrorHandlerOptions): SentryErrorHandler {\n return new SentryErrorHandler(config);\n}\n\nexport { createErrorHandler, SentryErrorHandler };\n","export const ANGULAR_ROUTING_OP = 'ui.angular.routing';\n\nexport const ANGULAR_INIT_OP = 'ui.angular.init';\n\nexport const ANGULAR_OP = 'ui.angular';\n","/* eslint-disable max-lines */\nimport type { AfterViewInit, OnDestroy, OnInit } from '@angular/core';\nimport { Directive, Injectable, Input, NgModule } from '@angular/core';\nimport type { ActivatedRouteSnapshot, Event, RouterState } from '@angular/router';\n// Duplicated import to work around a TypeScript bug where it'd complain that `Router` isn't imported as a type.\n// We need to import it as a value to satisfy Angular dependency injection. So:\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport { NavigationCancel, NavigationError, Router } from '@angular/router';\nimport { NavigationEnd, NavigationStart, ResolveEnd } from '@angular/router';\nimport {\n WINDOW,\n browserTracingIntegration as originalBrowserTracingIntegration,\n getCurrentScope,\n startBrowserTracingNavigationSpan,\n} from '@sentry/browser';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n getActiveSpan,\n getClient,\n spanToJSON,\n startInactiveSpan,\n} from '@sentry/core';\nimport type { Integration, Span, Transaction, TransactionContext } from '@sentry/types';\nimport { logger, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/utils';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { filter, tap } from 'rxjs/operators';\n\nimport { ANGULAR_INIT_OP, ANGULAR_OP, ANGULAR_ROUTING_OP } from './constants';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { runOutsideAngular } from './zone';\n\nlet instrumentationInitialized: boolean;\nlet stashedStartTransaction: (context: TransactionContext) => Transaction | undefined;\nlet stashedStartTransactionOnLocationChange: boolean;\n\nlet hooksBasedInstrumentation = false;\n\n/**\n * Creates routing instrumentation for Angular Router.\n *\n * @deprecated Use `browserTracingIntegration()` instead, which includes Angular-specific instrumentation out of the box.\n */\nexport function routingInstrumentation(\n customStartTransaction: (context: TransactionContext) => Transaction | undefined,\n startTransactionOnPageLoad: boolean = true,\n startTransactionOnLocationChange: boolean = true,\n): void {\n instrumentationInitialized = true;\n stashedStartTransaction = customStartTransaction;\n stashedStartTransactionOnLocationChange = startTransactionOnLocationChange;\n\n if (startTransactionOnPageLoad && WINDOW && WINDOW.location) {\n customStartTransaction({\n name: WINDOW.location.pathname,\n op: 'pageload',\n origin: 'auto.pageload.angular',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n },\n });\n }\n}\n\n/**\n * Creates routing instrumentation for Angular Router.\n *\n * @deprecated Use `browserTracingIntegration()` instead, which includes Angular-specific instrumentation out of the box.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const instrumentAngularRouting = routingInstrumentation;\n\n/**\n * A custom BrowserTracing integration for Angular.\n *\n * Use this integration in combination with `TraceService`\n */\nexport function browserTracingIntegration(\n options: Parameters<typeof originalBrowserTracingIntegration>[0] = {},\n): Integration {\n // If the user opts out to set this up, we just don't initialize this.\n // That way, the TraceService will not actually do anything, functionally disabling this.\n if (options.instrumentNavigation !== false) {\n instrumentationInitialized = true;\n hooksBasedInstrumentation = true;\n }\n\n return originalBrowserTracingIntegration({\n ...options,\n instrumentNavigation: false,\n });\n}\n\n/**\n * Grabs active transaction off scope.\n *\n * @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.\n */\nexport function getActiveTransaction(): Transaction | undefined {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentScope().getTransaction();\n}\n\n/**\n * Angular's Service responsible for hooking into Angular Router and tracking current navigation process.\n * Creates a new transaction for every route change and measures a duration of routing process.\n */\n@Injectable({ providedIn: 'root' })\nexport class TraceService implements OnDestroy {\n public navStart$: Observable<Event> = this._router.events.pipe(\n filter((event): event is NavigationStart => event instanceof NavigationStart),\n tap(navigationEvent => {\n if (!instrumentationInitialized) {\n IS_DEBUG_BUILD &&\n logger.error('Angular integration has tracing enabled, but Tracing integration is not configured');\n return;\n }\n\n if (this._routingSpan) {\n this._routingSpan.end();\n this._routingSpan = null;\n }\n\n const client = getClient();\n const strippedUrl = stripUrlQueryAndFragment(navigationEvent.url);\n\n if (client && hooksBasedInstrumentation) {\n if (!getActiveSpan()) {\n startBrowserTracingNavigationSpan(client, {\n name: strippedUrl,\n origin: 'auto.navigation.angular',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n },\n });\n }\n\n // eslint-disable-next-line deprecation/deprecation\n this._routingSpan =\n startInactiveSpan({\n name: `${navigationEvent.url}`,\n op: ANGULAR_ROUTING_OP,\n origin: 'auto.ui.angular',\n tags: {\n 'routing.instrumentation': '@sentry/angular',\n url: strippedUrl,\n ...(navigationEvent.navigationTrigger && {\n navigationTrigger: navigationEvent.navigationTrigger,\n }),\n },\n }) || null;\n\n return;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n let activeTransaction = getActiveTransaction();\n\n if (!activeTransaction && stashedStartTransactionOnLocationChange) {\n activeTransaction = stashedStartTransaction({\n name: strippedUrl,\n op: 'navigation',\n origin: 'auto.navigation.angular',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n },\n });\n }\n\n if (activeTransaction) {\n // eslint-disable-next-line deprecation/deprecation\n this._routingSpan = activeTransaction.startChild({\n description: `${navigationEvent.url}`,\n op: ANGULAR_ROUTING_OP,\n origin: 'auto.ui.angular',\n tags: {\n 'routing.instrumentation': '@sentry/angular',\n url: strippedUrl,\n ...(navigationEvent.navigationTrigger && {\n navigationTrigger: navigationEvent.navigationTrigger,\n }),\n },\n });\n }\n }),\n );\n\n // The ResolveEnd event is fired when the Angular router has resolved the URL and\n // the parameter<->value mapping. It holds the new resolved router state with\n // the mapping and the new URL.\n // Only After this event, the route is activated, meaning that the transaction\n // can be updated with the parameterized route name before e.g. the route's root\n // component is initialized. This should be early enough before outgoing requests\n // are made from the new route, with the exceptions of requests being made during\n // a navigation.\n public resEnd$: Observable<Event> = this._router.events.pipe(\n filter((event): event is ResolveEnd => event instanceof ResolveEnd),\n tap(event => {\n const route = getParameterizedRouteFromSnapshot(\n (event.state as unknown as RouterState & { root: ActivatedRouteSnapshot }).root,\n );\n\n // eslint-disable-next-line deprecation/deprecation\n const transaction = getActiveTransaction();\n // TODO (v8 / #5416): revisit the source condition. Do we want to make the parameterized route the default?\n const attributes = (transaction && spanToJSON(transaction).data) || {};\n if (transaction && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') {\n transaction.updateName(route);\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, `auto.${spanToJSON(transaction).op}.angular`);\n }\n }),\n );\n\n public navEnd$: Observable<Event> = this._router.events.pipe(\n filter(\n event => event instanceof NavigationEnd || event instanceof NavigationCancel || event instanceof NavigationError,\n ),\n tap(() => {\n if (this._routingSpan) {\n runOutsideAngular(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this._routingSpan!.end();\n });\n this._routingSpan = null;\n }\n }),\n );\n\n private _routingSpan: Span | null;\n\n private _subscription: Subscription;\n\n public constructor(private readonly _router: Router) {\n this._routingSpan = null;\n this._subscription = new Subscription();\n\n this._subscription.add(this.navStart$.subscribe());\n this._subscription.add(this.resEnd$.subscribe());\n this._subscription.add(this.navEnd$.subscribe());\n }\n\n /**\n * This is used to prevent memory leaks when the root view is created and destroyed multiple times,\n * since `subscribe` callbacks capture `this` and prevent many resources from being GC'd.\n */\n public ngOnDestroy(): void {\n this._subscription.unsubscribe();\n }\n}\n\nconst UNKNOWN_COMPONENT = 'unknown';\n\n/**\n * A directive that can be used to capture initialization lifecycle of the whole component.\n */\n@Directive({ selector: '[trace]' })\nexport class TraceDirective implements OnInit, AfterViewInit {\n @Input('trace') public componentName?: string;\n\n private _tracingSpan?: Span;\n\n /**\n * Implementation of OnInit lifecycle method\n * @inheritdoc\n */\n public ngOnInit(): void {\n if (!this.componentName) {\n this.componentName = UNKNOWN_COMPONENT;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n // eslint-disable-next-line deprecation/deprecation\n this._tracingSpan = activeTransaction.startChild({\n description: `<${this.componentName}>`,\n op: ANGULAR_INIT_OP,\n origin: 'auto.ui.angular.trace_directive',\n });\n }\n }\n\n /**\n * Implementation of AfterViewInit lifecycle method\n * @inheritdoc\n */\n public ngAfterViewInit(): void {\n if (this._tracingSpan) {\n this._tracingSpan.end();\n }\n }\n}\n\n/**\n * A module serves as a single compilation unit for the `TraceDirective` and can be re-used by any other module.\n */\n@NgModule({\n declarations: [TraceDirective],\n exports: [TraceDirective],\n})\nexport class TraceModule {}\n\n/**\n * Decorator function that can be used to capture initialization lifecycle of the whole component.\n */\nexport function TraceClassDecorator(): ClassDecorator {\n let tracingSpan: Span;\n\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\n return target => {\n const originalOnInit = target.prototype.ngOnInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngOnInit = function (...args: any[]): ReturnType<typeof originalOnInit> {\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n // eslint-disable-next-line deprecation/deprecation\n tracingSpan = activeTransaction.startChild({\n description: `<${target.name}>`,\n op: ANGULAR_INIT_OP,\n origin: 'auto.ui.angular.trace_class_decorator',\n });\n }\n if (originalOnInit) {\n return originalOnInit.apply(this, args);\n }\n };\n\n const originalAfterViewInit = target.prototype.ngAfterViewInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngAfterViewInit = function (...args: any[]): ReturnType<typeof originalAfterViewInit> {\n if (tracingSpan) {\n tracingSpan.end();\n }\n if (originalAfterViewInit) {\n return originalAfterViewInit.apply(this, args);\n }\n };\n };\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n}\n\n/**\n * Decorator function that can be used to capture a single lifecycle methods of the component.\n */\nexport function TraceMethodDecorator(): MethodDecorator {\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/ban-types\n return (target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n const originalMethod = descriptor.value;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor.value = function (...args: any[]): ReturnType<typeof originalMethod> {\n const now = timestampInSeconds();\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n // eslint-disable-next-line deprecation/deprecation\n activeTransaction.startChild({\n description: `<${target.constructor.name}>`,\n endTimestamp: now,\n op: `${ANGULAR_OP}.${String(propertyKey)}`,\n origin: 'auto.ui.angular.trace_method_decorator',\n startTimestamp: now,\n });\n }\n if (originalMethod) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalMethod.apply(this, args);\n }\n };\n return descriptor;\n };\n}\n\n/**\n * Takes the parameterized route from a given ActivatedRouteSnapshot and concatenates the snapshot's\n * child route with its parent to produce the complete parameterized URL of the activated route.\n * This happens recursively until the last child (i.e. the end of the URL) is reached.\n *\n * @param route the ActivatedRouteSnapshot of which its path and its child's path is concatenated\n *\n * @returns the concatenated parameterized route string\n */\nexport function getParameterizedRouteFromSnapshot(route?: ActivatedRouteSnapshot | null): string {\n const parts: string[] = [];\n\n let currentRoute = route && route.firstChild;\n while (currentRoute) {\n const path = currentRoute && currentRoute.routeConfig && currentRoute.routeConfig.path;\n if (path === null || path === undefined) {\n break;\n }\n\n parts.push(path);\n currentRoute = currentRoute.firstChild;\n }\n\n const fullPath = parts.filter(part => part).join('/');\n return fullPath ? `/${fullPath}/` : '/';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["browserInit","originalBrowserTracingIntegration"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAIH;AACO,MAAM,cAAc,GAAG,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,gBAAgB;;ACJ/F;;AAEG;AACG,SAAU,IAAI,CAAC,OAAuB,EAAA;AAC1C,IAAA,MAAM,IAAI,GAAA,MAAA,CAAA,MAAA,CAAA;;;;;;;QAOR,mBAAmB,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,WAAW,IAAG;AACxE,YAAA,OAAO,WAAW,CAAC,IAAI,KAAK,UAAU,CAAC;AACzC,SAAC,CAAC,EAAA,EACC,OAAO,CACX,CAAC;AAEF,IAAA,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAElC,IAAA,yBAAyB,EAAE,CAAC;IAC5BA,MAAW,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC;AAED,SAAS,yBAAyB,GAAA;IAChC,MAAM,uBAAuB,GAAG,EAAE,CAAC;IAEnC,MAAM,cAAc,GAAG,OAAO,IAAI,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,SAAS,CAAC;AAE1F,IAAA,IAAI,cAAc,EAAE;QAClB,IAAI,cAAc,GAAG,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../src/zone.ts","../../src/errorhandler.ts","../../src/constants.ts","../../src/tracing.ts","../../src/sentry-angular.ts"],"sourcesContent":["/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * We define \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during our, or the user's\n * build process. Take care when introducing new flags - they must not throw if they are not replaced. See the Debug\n * Build Flags section in CONTRIBUTING.md.\n */\n\ndeclare const __SENTRY_DEBUG__: boolean;\n\n/** Flag that is true for debug builds, false otherwise. */\nexport const IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;\n","import { VERSION } from '@angular/core';\nimport type { BrowserOptions } from '@sentry/browser';\nimport { getDefaultIntegrations, init as browserInit, setContext } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\nimport { logger } from '@sentry/utils';\n\nimport { IS_DEBUG_BUILD } from './flags';\n\n/**\n * Inits the Angular SDK\n */\nexport function init(options: BrowserOptions): void {\n const opts = {\n // Filter out BrowserApiErrors integration as it interferes with our Angular `ErrorHandler`:\n // BrowserApiErrors would catch certain errors before they reach the `ErrorHandler` and thus provide a\n // lower fidelity error than what `SentryErrorHandler` (see errorhandler.ts) would provide.\n // see:\n // - https://github.com/getsentry/sentry-javascript/issues/5417#issuecomment-1453407097\n // - https://github.com/getsentry/sentry-javascript/issues/2744\n defaultIntegrations: getDefaultIntegrations(options).filter(integration => {\n return integration.name !== 'BrowserApiErrors';\n }),\n ...options,\n };\n\n applySdkMetadata(opts, 'angular');\n\n checkAndSetAngularVersion();\n browserInit(opts);\n}\n\nfunction checkAndSetAngularVersion(): void {\n const ANGULAR_MINIMUM_VERSION = 10;\n\n const angularVersion = VERSION && VERSION.major ? parseInt(VERSION.major, 10) : undefined;\n\n if (angularVersion) {\n if (angularVersion < ANGULAR_MINIMUM_VERSION) {\n IS_DEBUG_BUILD &&\n logger.warn(\n `The Sentry SDK does not officially support Angular ${angularVersion}.`,\n `This version of the Sentry SDK supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`,\n 'Please consider upgrading your Angular version or downgrading the Sentry SDK.',\n );\n }\n setContext('angular', { version: angularVersion });\n }\n}\n","// That's the `global.Zone` exposed when the `zone.js` package is used.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ndeclare const Zone: any;\n\n// There're 2 types of Angular applications:\n// 1) zone-full (by default)\n// 2) zone-less\n// The developer can avoid importing the `zone.js` package and tells Angular that\n// he is responsible for running the change detection by himself. This is done by\n// \"nooping\" the zone through `CompilerOptions` when bootstrapping the root module.\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\nconst isNgZoneEnabled = typeof Zone !== 'undefined' && !!Zone.current;\n\n/**\n * The function that does the same job as `NgZone.runOutsideAngular`.\n */\nexport function runOutsideAngular<T>(callback: () => T): T {\n // The `Zone.root.run` basically will run the `callback` in the most parent zone.\n // Any asynchronous API used inside the `callback` won't catch Angular's zone\n // since `Zone.current` will reference `Zone.root`.\n // The Angular's zone is forked from the `Zone.root`. In this case, `zone.js` won't\n // trigger change detection, and `ApplicationRef.tick()` will not be run.\n // Caretaker note: we're using `Zone.root` except `NgZone.runOutsideAngular` since this\n // will require injecting the `NgZone` facade. That will create a breaking change for\n // projects already using the `@sentry/angular`.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return isNgZoneEnabled ? Zone.root.run(callback) : callback();\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport type { ErrorHandler as AngularErrorHandler } from '@angular/core';\nimport { Inject, Injectable } from '@angular/core';\nimport * as Sentry from '@sentry/browser';\nimport type { ReportDialogOptions } from '@sentry/browser';\nimport type { Event } from '@sentry/types';\nimport { isString } from '@sentry/utils';\n\nimport { runOutsideAngular } from './zone';\n\n/**\n * Options used to configure the behavior of the Angular ErrorHandler.\n */\nexport interface ErrorHandlerOptions {\n logErrors?: boolean;\n showDialog?: boolean;\n dialogOptions?: Omit<ReportDialogOptions, 'eventId'>;\n /**\n * Custom implementation of error extraction from the raw value captured by the Angular.\n * @param error Value captured by Angular's ErrorHandler provider\n * @param defaultExtractor Default implementation that can be used as the fallback in case of custom implementation\n */\n extractor?(error: unknown, defaultExtractor: (error: unknown) => unknown): unknown;\n}\n\n// https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts\nfunction tryToUnwrapZonejsError(error: unknown): unknown | Error {\n // TODO: once Angular14 is the minimum requirement ERROR_ORIGINAL_ERROR and\n // getOriginalError from error.ts can be used directly.\n return error && (error as { ngOriginalError: Error }).ngOriginalError\n ? (error as { ngOriginalError: Error }).ngOriginalError\n : error;\n}\n\nfunction extractHttpModuleError(error: HttpErrorResponse): string | Error {\n // The `error` property of http exception can be either an `Error` object, which we can use directly...\n if (isErrorOrErrorLikeObject(error.error)) {\n return error.error;\n }\n\n // ... or an`ErrorEvent`, which can provide us with the message but no stack...\n if (error.error instanceof ErrorEvent && error.error.message) {\n return error.error.message;\n }\n\n // ...or the request body itself, which we can use as a message instead.\n if (typeof error.error === 'string') {\n return `Server returned code ${error.status} with body \"${error.error}\"`;\n }\n\n // If we don't have any detailed information, fallback to the request message itself.\n return error.message;\n}\n\ntype ErrorCandidate = {\n name?: unknown;\n message?: unknown;\n stack?: unknown;\n};\n\nfunction isErrorOrErrorLikeObject(value: unknown): value is Error {\n if (value instanceof Error) {\n return true;\n }\n\n if (value === null || typeof value !== 'object') {\n return false;\n }\n\n const candidate = value as ErrorCandidate;\n\n return (\n isString(candidate.name) &&\n isString(candidate.message) &&\n (undefined === candidate.stack || isString(candidate.stack))\n );\n}\n\n/**\n * Implementation of Angular's ErrorHandler provider that can be used as a drop-in replacement for the stock one.\n */\n@Injectable({ providedIn: 'root' })\nclass SentryErrorHandler implements AngularErrorHandler {\n protected readonly _options: ErrorHandlerOptions;\n\n /* indicates if we already registered our the afterSendEvent handler */\n private _registeredAfterSendEventHandler;\n\n public constructor(@Inject('errorHandlerOptions') options?: ErrorHandlerOptions) {\n this._registeredAfterSendEventHandler = false;\n\n this._options = {\n logErrors: true,\n ...options,\n };\n }\n\n /**\n * Method called for every value captured through the ErrorHandler\n */\n public handleError(error: unknown): void {\n const extractedError = this._extractError(error) || 'Handled unknown error';\n\n // Capture handled exception and send it to Sentry.\n const eventId = runOutsideAngular(() =>\n Sentry.captureException(extractedError, {\n mechanism: { type: 'angular', handled: false },\n }),\n );\n\n // When in development mode, log the error to console for immediate feedback.\n if (this._options.logErrors) {\n // eslint-disable-next-line no-console\n console.error(extractedError);\n }\n\n // Optionally show user dialog to provide details on what happened.\n if (this._options.showDialog) {\n const client = Sentry.getClient();\n\n if (client && !this._registeredAfterSendEventHandler) {\n client.on('afterSendEvent', (event: Event) => {\n if (!event.type && event.event_id) {\n Sentry.showReportDialog({ ...this._options.dialogOptions, eventId: event.event_id });\n }\n });\n\n // We only want to register this hook once in the lifetime of the error handler\n this._registeredAfterSendEventHandler = true;\n } else if (!client) {\n Sentry.showReportDialog({ ...this._options.dialogOptions, eventId });\n }\n }\n }\n\n /**\n * Used to pull a desired value that will be used to capture an event out of the raw value captured by ErrorHandler.\n */\n protected _extractError(error: unknown): unknown {\n // Allow custom overrides of extracting function\n if (this._options.extractor) {\n const defaultExtractor = this._defaultExtractor.bind(this);\n return this._options.extractor(error, defaultExtractor);\n }\n\n return this._defaultExtractor(error);\n }\n\n /**\n * Default implementation of error extraction that handles default error wrapping, HTTP responses, ErrorEvent and few other known cases.\n */\n protected _defaultExtractor(errorCandidate: unknown): unknown {\n const error = tryToUnwrapZonejsError(errorCandidate);\n\n // If it's http module error, extract as much information from it as we can.\n if (error instanceof HttpErrorResponse) {\n return extractHttpModuleError(error);\n }\n\n // We can handle messages and Error objects directly.\n if (typeof error === 'string' || isErrorOrErrorLikeObject(error)) {\n return error;\n }\n\n // Nothing was extracted, fallback to default error message.\n return null;\n }\n}\n\n/**\n * Factory function that creates an instance of a preconfigured ErrorHandler provider.\n */\nfunction createErrorHandler(config?: ErrorHandlerOptions): SentryErrorHandler {\n return new SentryErrorHandler(config);\n}\n\nexport { createErrorHandler, SentryErrorHandler };\n","export const ANGULAR_ROUTING_OP = 'ui.angular.routing';\n\nexport const ANGULAR_INIT_OP = 'ui.angular.init';\n\nexport const ANGULAR_OP = 'ui.angular';\n","import type { AfterViewInit, OnDestroy, OnInit } from '@angular/core';\nimport { Directive, Injectable, Input, NgModule } from '@angular/core';\nimport type { ActivatedRouteSnapshot, Event, RouterState } from '@angular/router';\n// Duplicated import to work around a TypeScript bug where it'd complain that `Router` isn't imported as a type.\n// We need to import it as a value to satisfy Angular dependency injection. So:\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport { NavigationCancel, NavigationError, Router } from '@angular/router';\nimport { NavigationEnd, NavigationStart, ResolveEnd } from '@angular/router';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n browserTracingIntegration as originalBrowserTracingIntegration,\n getActiveSpan,\n getClient,\n getCurrentScope,\n getRootSpan,\n spanToJSON,\n startBrowserTracingNavigationSpan,\n startInactiveSpan,\n} from '@sentry/browser';\nimport type { Integration, Span } from '@sentry/types';\nimport { logger, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/utils';\nimport type { Observable } from 'rxjs';\nimport { Subscription } from 'rxjs';\nimport { filter, tap } from 'rxjs/operators';\n\nimport { ANGULAR_INIT_OP, ANGULAR_OP, ANGULAR_ROUTING_OP } from './constants';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { runOutsideAngular } from './zone';\n\nlet instrumentationInitialized: boolean;\n\n/**\n * A custom browser tracing integration for Angular.\n *\n * Use this integration in combination with `TraceService`\n */\nexport function browserTracingIntegration(\n options: Parameters<typeof originalBrowserTracingIntegration>[0] = {},\n): Integration {\n // If the user opts out to set this up, we just don't initialize this.\n // That way, the TraceService will not actually do anything, functionally disabling this.\n if (options.instrumentNavigation !== false) {\n instrumentationInitialized = true;\n }\n\n return originalBrowserTracingIntegration({\n ...options,\n instrumentNavigation: false,\n });\n}\n\n/**\n * This function is extracted to make unit testing easier.\n */\nexport function _updateSpanAttributesForParametrizedUrl(route: string, span?: Span): void {\n const attributes = (span && spanToJSON(span).data) || {};\n\n if (span && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') {\n span.updateName(route);\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, `auto.${spanToJSON(span).op}.angular`);\n }\n}\n\n/**\n * Angular's Service responsible for hooking into Angular Router and tracking current navigation process.\n * Creates a new transaction for every route change and measures a duration of routing process.\n */\n@Injectable({ providedIn: 'root' })\nexport class TraceService implements OnDestroy {\n public navStart$: Observable<Event> = this._router.events.pipe(\n filter((event): event is NavigationStart => event instanceof NavigationStart),\n tap(navigationEvent => {\n if (!instrumentationInitialized) {\n IS_DEBUG_BUILD &&\n logger.error('Angular integration has tracing enabled, but Tracing integration is not configured');\n return;\n }\n\n if (this._routingSpan) {\n this._routingSpan.end();\n this._routingSpan = null;\n }\n\n const client = getClient();\n const strippedUrl = stripUrlQueryAndFragment(navigationEvent.url);\n\n if (client) {\n // see comment in `_isPageloadOngoing` for rationale\n if (!this._isPageloadOngoing()) {\n startBrowserTracingNavigationSpan(client, {\n name: strippedUrl,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.navigation.angular',\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n },\n });\n } else {\n // The first time we end up here, we set the pageload flag to false\n // Subsequent navigations are going to get their own navigation root span\n // even if the pageload root span is still ongoing.\n this._pageloadOngoing = false;\n }\n\n this._routingSpan =\n startInactiveSpan({\n name: `${navigationEvent.url}`,\n op: ANGULAR_ROUTING_OP,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular',\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n url: strippedUrl,\n ...(navigationEvent.navigationTrigger && {\n navigationTrigger: navigationEvent.navigationTrigger,\n }),\n },\n }) || null;\n\n return;\n }\n }),\n );\n\n // The ResolveEnd event is fired when the Angular router has resolved the URL and\n // the parameter<->value mapping. It holds the new resolved router state with\n // the mapping and the new URL.\n // Only After this event, the route is activated, meaning that the transaction\n // can be updated with the parameterized route name before e.g. the route's root\n // component is initialized. This should be early enough before outgoing requests\n // are made from the new route, with the exceptions of requests being made during\n // a navigation.\n public resEnd$: Observable<Event> = this._router.events.pipe(\n filter((event): event is ResolveEnd => event instanceof ResolveEnd),\n tap(event => {\n const route = getParameterizedRouteFromSnapshot(\n (event.state as unknown as RouterState & { root: ActivatedRouteSnapshot }).root,\n );\n\n if (route) {\n getCurrentScope().setTransactionName(route);\n }\n\n const activeSpan = getActiveSpan();\n const rootSpan = activeSpan && getRootSpan(activeSpan);\n\n _updateSpanAttributesForParametrizedUrl(route, rootSpan);\n }),\n );\n\n public navEnd$: Observable<Event> = this._router.events.pipe(\n filter(\n event => event instanceof NavigationEnd || event instanceof NavigationCancel || event instanceof NavigationError,\n ),\n tap(() => {\n if (this._routingSpan) {\n runOutsideAngular(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this._routingSpan!.end();\n });\n this._routingSpan = null;\n }\n }),\n );\n\n private _routingSpan: Span | null;\n\n private _subscription: Subscription;\n\n /**\n * @see _isPageloadOngoing()\n */\n private _pageloadOngoing: boolean;\n\n public constructor(private readonly _router: Router) {\n this._routingSpan = null;\n this._pageloadOngoing = true;\n\n this._subscription = new Subscription();\n\n this._subscription.add(this.navStart$.subscribe());\n this._subscription.add(this.resEnd$.subscribe());\n this._subscription.add(this.navEnd$.subscribe());\n }\n\n /**\n * This is used to prevent memory leaks when the root view is created and destroyed multiple times,\n * since `subscribe` callbacks capture `this` and prevent many resources from being GC'd.\n */\n public ngOnDestroy(): void {\n this._subscription.unsubscribe();\n }\n\n /**\n * We only _avoid_ creating a navigation root span in one case:\n *\n * There is an ongoing pageload span AND the router didn't yet emit the first navigation start event\n *\n * The first navigation start event will create the child routing span\n * and update the pageload root span name on ResolveEnd.\n *\n * There's an edge case we need to avoid here: If the router fires the first navigation start event\n * _after_ the pageload root span finished. This is why we check for the pageload root span.\n * Possible real-world scenario: Angular application and/or router is bootstrapped after the pageload\n * idle root span finished\n *\n * The overall rationale is:\n * - if we already avoided creating a navigation root span once, we don't avoid it again\n * (i.e. set `_pageloadOngoing` to `false`)\n * - if `_pageloadOngoing` is already `false`, create a navigation root span\n * - if there's no active/pageload root span, create a navigation root span\n * - only if there's an ongoing pageload root span AND `_pageloadOngoing` is still `true,\n * don't create a navigation root span\n */\n private _isPageloadOngoing(): boolean {\n if (!this._pageloadOngoing) {\n // pageload is already finished, no need to update\n return false;\n }\n\n const activeSpan = getActiveSpan();\n if (!activeSpan) {\n this._pageloadOngoing = false;\n return false;\n }\n\n const rootSpan = getRootSpan(activeSpan);\n\n this._pageloadOngoing = spanToJSON(rootSpan).op === 'pageload';\n return this._pageloadOngoing;\n }\n}\n\nconst UNKNOWN_COMPONENT = 'unknown';\n\n/**\n * A directive that can be used to capture initialization lifecycle of the whole component.\n */\n@Directive({ selector: '[trace]' })\nexport class TraceDirective implements OnInit, AfterViewInit {\n @Input('trace') public componentName?: string;\n\n private _tracingSpan?: Span;\n\n /**\n * Implementation of OnInit lifecycle method\n * @inheritdoc\n */\n public ngOnInit(): void {\n if (!this.componentName) {\n this.componentName = UNKNOWN_COMPONENT;\n }\n\n if (getActiveSpan()) {\n this._tracingSpan = startInactiveSpan({\n name: `<${this.componentName}>`,\n op: ANGULAR_INIT_OP,\n attributes: { [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_directive' },\n });\n }\n }\n\n /**\n * Implementation of AfterViewInit lifecycle method\n * @inheritdoc\n */\n public ngAfterViewInit(): void {\n if (this._tracingSpan) {\n this._tracingSpan.end();\n }\n }\n}\n\n/**\n * A module serves as a single compilation unit for the `TraceDirective` and can be re-used by any other module.\n */\n@NgModule({\n declarations: [TraceDirective],\n exports: [TraceDirective],\n})\nexport class TraceModule {}\n\ninterface TraceClassOptions {\n /**\n * Name of the class\n */\n name?: string;\n}\n\n/**\n * Decorator function that can be used to capture initialization lifecycle of the whole component.\n */\nexport function TraceClass(options?: TraceClassOptions): ClassDecorator {\n let tracingSpan: Span;\n\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n return target => {\n const originalOnInit = target.prototype.ngOnInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngOnInit = function (...args: any[]): ReturnType<typeof originalOnInit> {\n tracingSpan = startInactiveSpan({\n onlyIfParent: true,\n name: `<${options && options.name ? options.name : 'unnamed'}>`,\n op: ANGULAR_INIT_OP,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_class_decorator',\n },\n });\n\n if (originalOnInit) {\n return originalOnInit.apply(this, args);\n }\n };\n\n const originalAfterViewInit = target.prototype.ngAfterViewInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngAfterViewInit = function (...args: any[]): ReturnType<typeof originalAfterViewInit> {\n if (tracingSpan) {\n tracingSpan.end();\n }\n if (originalAfterViewInit) {\n return originalAfterViewInit.apply(this, args);\n }\n };\n };\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n}\n\ninterface TraceMethodOptions {\n /**\n * Name of the method (is added to the tracing span)\n */\n name?: string;\n}\n\n/**\n * Decorator function that can be used to capture a single lifecycle methods of the component.\n */\nexport function TraceMethod(options?: TraceMethodOptions): MethodDecorator {\n // eslint-disable-next-line @typescript-eslint/ban-types\n return (target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n const originalMethod = descriptor.value;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor.value = function (...args: any[]): ReturnType<typeof originalMethod> {\n const now = timestampInSeconds();\n\n startInactiveSpan({\n onlyIfParent: true,\n name: `<${options && options.name ? options.name : 'unnamed'}>`,\n op: `${ANGULAR_OP}.${String(propertyKey)}`,\n startTime: now,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.angular.trace_method_decorator',\n },\n }).end(now);\n\n if (originalMethod) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalMethod.apply(this, args);\n }\n };\n return descriptor;\n };\n}\n\n/**\n * Takes the parameterized route from a given ActivatedRouteSnapshot and concatenates the snapshot's\n * child route with its parent to produce the complete parameterized URL of the activated route.\n * This happens recursively until the last child (i.e. the end of the URL) is reached.\n *\n * @param route the ActivatedRouteSnapshot of which its path and its child's path is concatenated\n *\n * @returns the concatenated parameterized route string\n */\nexport function getParameterizedRouteFromSnapshot(route?: ActivatedRouteSnapshot | null): string {\n const parts: string[] = [];\n\n let currentRoute = route && route.firstChild;\n while (currentRoute) {\n const path = currentRoute && currentRoute.routeConfig && currentRoute.routeConfig.path;\n if (path === null || path === undefined) {\n break;\n }\n\n parts.push(path);\n currentRoute = currentRoute.firstChild;\n }\n\n const fullPath = parts.filter(part => part).join('/');\n return fullPath ? `/${fullPath}/` : '/';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["browserInit","originalBrowserTracingIntegration"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAIH;AACO,MAAM,cAAc,GAAG,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,gBAAgB;;ACJ/F;;AAEG;AACG,SAAU,IAAI,CAAC,OAAuB,EAAA;AAC1C,IAAA,MAAM,IAAI,GAAA,MAAA,CAAA,MAAA,CAAA;;;;;;;QAOR,mBAAmB,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,WAAW,IAAG;AACxE,YAAA,OAAO,WAAW,CAAC,IAAI,KAAK,kBAAkB,CAAC;AACjD,SAAC,CAAC,EAAA,EACC,OAAO,CACX,CAAC;AAEF,IAAA,gBAAgB,CAAC,IAAI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ACF,QAAA,OAAO,UAAU,CAAC;AACpB,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;AAQG;AACG,SAAU,iCAAiC,CAAC,KAAqC,EAAA;IACrF,MAAM,KAAK,GAAa,EAAE,CAAC;AAE3B,IAAA,IAAI,YAAY,GAAG,KAAK,IAAI,KAAK,CAAC,UAAU,CAAC;AAC7C,IAAA,OAAO,YAAY,EAAE;AACnB,QAAA,MAAM,IAAI,GAAG,YAAY,IAAI,YAAY,CAAC,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC;AACvF,QAAA,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;YACvC,MAAM;AACP,SAAA;AAED,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,QAAA,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC;AACxC,KAAA;AAED,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtD,OAAO,QAAQ,GAAG,CAAA,CAAA,EAAI,QAAQ,CAAA,CAAA,CAAG,GAAG,GAAG,CAAC;AAC1C;;ACtYA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,4 @@ export type { ErrorHandlerOptions } from './errorhandler';
|
|
|
2
2
|
export * from '@sentry/browser';
|
|
3
3
|
export { init } from './sdk';
|
|
4
4
|
export { createErrorHandler, SentryErrorHandler } from './errorhandler';
|
|
5
|
-
export {
|
|
6
|
-
routingInstrumentation, // legacy name
|
|
7
|
-
browserTracingIntegration, TraceClassDecorator, TraceMethodDecorator, TraceDirective, TraceModule, TraceService, } from './tracing';
|
|
5
|
+
export { browserTracingIntegration, TraceClass, TraceMethod, TraceDirective, TraceModule, TraceService, } from './tracing';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha.3",
|
|
4
4
|
"description": "Official Sentry SDK for Angular",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
|
|
7
7
|
"author": "Sentry",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=14.18"
|
|
11
11
|
},
|
|
12
12
|
"main": "bundles/sentry-angular.umd.js",
|
|
13
13
|
"module": "fesm2015/sentry-angular.js",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"rxjs": "^6.5.5 || ^7.x"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@sentry/browser": "
|
|
25
|
-
"@sentry/core": "
|
|
26
|
-
"@sentry/types": "
|
|
27
|
-
"@sentry/utils": "
|
|
24
|
+
"@sentry/browser": "8.0.0-alpha.3",
|
|
25
|
+
"@sentry/core": "8.0.0-alpha.3",
|
|
26
|
+
"@sentry/types": "8.0.0-alpha.3",
|
|
27
|
+
"@sentry/utils": "8.0.0-alpha.3",
|
|
28
28
|
"tslib": "^2.4.1"
|
|
29
29
|
},
|
|
30
30
|
"volta": {
|
|
@@ -37,6 +37,12 @@
|
|
|
37
37
|
"dependsOn": [
|
|
38
38
|
"^build:transpile",
|
|
39
39
|
"^build:types"
|
|
40
|
+
],
|
|
41
|
+
"outputs": [
|
|
42
|
+
"{projectRoot}/build/esm2015",
|
|
43
|
+
"{projectRoot}/build/fesm2015",
|
|
44
|
+
"{projectRoot}/build/*.{md,json}",
|
|
45
|
+
"{projectRoot}/build/LICENCE"
|
|
40
46
|
]
|
|
41
47
|
}
|
|
42
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"exports":[{"from":"@sentry/browser"}],"metadata":{"ErrorHandlerOptions":{"__symbolic":"interface"},"init":{"__symbolic":"function"},"createErrorHandler":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SentryErrorHandler"},"arguments":[{"__symbolic":"reference","name":"config"}]}},"SentryErrorHandler":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":81,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":88,"character":22},"arguments":["errorHandlerOptions"]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"handleError":[{"__symbolic":"method"}],"_extractError":[{"__symbolic":"method"}],"_defaultExtractor":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"
|
|
1
|
+
{"__symbolic":"module","version":4,"exports":[{"from":"@sentry/browser"}],"metadata":{"ErrorHandlerOptions":{"__symbolic":"interface"},"init":{"__symbolic":"function"},"createErrorHandler":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SentryErrorHandler"},"arguments":[{"__symbolic":"reference","name":"config"}]}},"SentryErrorHandler":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":81,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":88,"character":22},"arguments":["errorHandlerOptions"]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"handleError":[{"__symbolic":"method"}],"_extractError":[{"__symbolic":"method"}],"_defaultExtractor":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"browserTracingIntegration":{"__symbolic":"function"},"TraceClass":{"__symbolic":"function"},"TraceMethod":{"__symbolic":"function","parameters":["options"],"value":{"__symbolic":"error","message":"Lambda not supported","line":340,"character":9,"module":"./tracing"}},"TraceDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":238,"character":1},"arguments":[{"selector":"[trace]"}]}],"members":{"componentName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":240,"character":3},"arguments":["trace"]}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"TraceModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":276,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TraceDirective"}],"exports":[{"__symbolic":"reference","name":"TraceDirective"}]}]}],"members":{}},"TraceService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":69,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":174,"character":47}]}],"ngOnDestroy":[{"__symbolic":"method"}],"_isPageloadOngoing":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"ErrorHandlerOptions":"./errorhandler","init":"./sdk","createErrorHandler":"./errorhandler","SentryErrorHandler":"./errorhandler","browserTracingIntegration":"./tracing","TraceClass":"./tracing","TraceMethod":"./tracing","TraceDirective":"./tracing","TraceModule":"./tracing","TraceService":"./tracing"},"importAs":"@sentry/angular"}
|