@fluxhub/fluxhub-lib 19.0.249 → 19.0.251
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.
|
@@ -54,3 +54,25 @@ export declare function fhEventId(h: HttpHeaders | null | undefined): string | n
|
|
|
54
54
|
*/
|
|
55
55
|
export declare function fhHandledError(): Error;
|
|
56
56
|
export declare function fhIsHandled(err: unknown): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Impostazioni comuni per Sentry.init dei portali (Rustrak): rumore da scartare e pulizia
|
|
59
|
+
* dei breadcrumb. Unica fonte per tutti i portali: una voce nuova si aggiunge qui e arriva
|
|
60
|
+
* a tutti con l'aggiornamento della libreria. Uso nel monitoring.ts del portale:
|
|
61
|
+
* Sentry.init({ dsn, release, ..., ...FH_MONITORING_DEFAULTS })
|
|
62
|
+
* Tipi volutamente generici: la libreria non dipende dall'SDK di Sentry.
|
|
63
|
+
* Rumore individuato analizzando le issue di tutti i portali il 21/10/2026.
|
|
64
|
+
*/
|
|
65
|
+
export declare const FH_MONITORING_IGNORE_ERRORS: (string | RegExp)[];
|
|
66
|
+
/** Scarta un evento gia' segnalato o non azionabile; raggruppa i backend non raggiungibili. */
|
|
67
|
+
export declare function fhMonitoringBeforeSend(event: any, hint: any): any;
|
|
68
|
+
/**
|
|
69
|
+
* Breadcrumb: i console.log dei portali stampano record interi (anche utenti con password),
|
|
70
|
+
* quindi dei log di console restano solo warning ed errori, senza argomenti; via anche il
|
|
71
|
+
* banner di licenza di AG Grid, che riempie la coda.
|
|
72
|
+
*/
|
|
73
|
+
export declare function fhMonitoringBeforeBreadcrumb(b: any): any;
|
|
74
|
+
export declare const FH_MONITORING_DEFAULTS: {
|
|
75
|
+
ignoreErrors: (string | RegExp)[];
|
|
76
|
+
beforeSend: typeof fhMonitoringBeforeSend;
|
|
77
|
+
beforeBreadcrumb: typeof fhMonitoringBeforeBreadcrumb;
|
|
78
|
+
};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export { AppService } from './lib/services/app.service';
|
|
|
90
90
|
export { AppMakerService } from './lib/services/app-maker.service';
|
|
91
91
|
export { FileService } from './lib/services/dofile.service';
|
|
92
92
|
export { QueryService } from './lib/services/doquery.service';
|
|
93
|
-
export { FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, fhHandledError, fhIsHandled } from './lib/services/error-reporter';
|
|
93
|
+
export { FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, fhHandledError, fhIsHandled, FH_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, fhMonitoringBeforeSend, fhMonitoringBeforeBreadcrumb, } from './lib/services/error-reporter';
|
|
94
94
|
export type { FHErrorReport, FHErrorReporter } from './lib/services/error-reporter';
|
|
95
95
|
export { OdbcService } from './lib/services/doquery-odbc.service';
|
|
96
96
|
export { WkfService } from './lib/services/dowkf.service';
|