|
|
@ -34,8 +34,11 @@ export interface GrafanaJavascriptAgentBackendOptions extends BrowserConfig { |
|
|
|
consoleInstrumentalizationEnabled: boolean; |
|
|
|
consoleInstrumentalizationEnabled: boolean; |
|
|
|
webVitalsInstrumentalizationEnabled: boolean; |
|
|
|
webVitalsInstrumentalizationEnabled: boolean; |
|
|
|
tracingInstrumentalizationEnabled: boolean; |
|
|
|
tracingInstrumentalizationEnabled: boolean; |
|
|
|
|
|
|
|
ignoreUrls: RegExp[]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const TRACKING_URLS = [/.*.google-analytics.com*.*/, /.*.googletagmanager.com*.*/, /frontend-metrics/]; |
|
|
|
|
|
|
|
|
|
|
|
export class GrafanaJavascriptAgentBackend |
|
|
|
export class GrafanaJavascriptAgentBackend |
|
|
|
implements EchoBackend<GrafanaJavascriptAgentEchoEvent, GrafanaJavascriptAgentBackendOptions> |
|
|
|
implements EchoBackend<GrafanaJavascriptAgentEchoEvent, GrafanaJavascriptAgentBackendOptions> |
|
|
|
{ |
|
|
|
{ |
|
|
@ -87,7 +90,7 @@ export class GrafanaJavascriptAgentBackend |
|
|
|
'ResizeObserver loop completed', |
|
|
|
'ResizeObserver loop completed', |
|
|
|
'Non-Error exception captured with keys', |
|
|
|
'Non-Error exception captured with keys', |
|
|
|
], |
|
|
|
], |
|
|
|
ignoreUrls: [new RegExp(`/*${options.customEndpoint}/`), /frontend-metrics/], |
|
|
|
ignoreUrls: [new RegExp(`/*${options.customEndpoint}/`), ...TRACKING_URLS, ...options.ignoreUrls], |
|
|
|
sessionTracking: { |
|
|
|
sessionTracking: { |
|
|
|
persistent: true, |
|
|
|
persistent: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|