@posiwise/common-services 0.2.12 → 0.2.14
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/lib/sentry.service.d.ts
CHANGED
|
@@ -27,9 +27,34 @@ export declare class SentryErrorHandler implements ErrorHandler {
|
|
|
27
27
|
* This prevents "unlabeled events" by ensuring all events have a classification
|
|
28
28
|
*/
|
|
29
29
|
private classifyError;
|
|
30
|
+
/**
|
|
31
|
+
* Classifies object-type errors
|
|
32
|
+
*/
|
|
33
|
+
private classifyObjectError;
|
|
34
|
+
/**
|
|
35
|
+
* Determines error type classification based on the 'type' property
|
|
36
|
+
*/
|
|
37
|
+
private classifyErrorByType;
|
|
30
38
|
private isEdgeSyntheticEvent;
|
|
31
39
|
private handleNonStandardError;
|
|
32
40
|
private handleUnlabeledEvent;
|
|
41
|
+
/**
|
|
42
|
+
* Filters Sentry events before sending — extracted from beforeSend config
|
|
43
|
+
* to reduce cognitive complexity (S3776).
|
|
44
|
+
*
|
|
45
|
+
* Drops or filters exception values for known noisy/irrelevant error types:
|
|
46
|
+
* CloseEvent, ResizeObserver, JSON parsing, ChunkLoadError, script loading,
|
|
47
|
+
* plotly timeout, cross-origin frame, non-error exceptions, and Edge synthetic events.
|
|
48
|
+
*/
|
|
49
|
+
private static beforeSendFilter;
|
|
50
|
+
/**
|
|
51
|
+
* Filters out known noisy exception values in a single pass.
|
|
52
|
+
*/
|
|
53
|
+
private static filterExceptionValues;
|
|
54
|
+
/**
|
|
55
|
+
* Determines whether the entire event should be dropped (return truthy to drop).
|
|
56
|
+
*/
|
|
57
|
+
private static shouldDropEvent;
|
|
33
58
|
private logToConsole;
|
|
34
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<SentryErrorHandler, never>;
|
|
35
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<SentryErrorHandler>;
|