Skip to main content

Probe configuration

The system can dynamically send some advanced configurations to the probe. Refer to the following for detailed configuration items and descriptions.

//Describe externally provided configuration items
export type ReportConfigOptions = {
// Environment Default: None
env?: string
//App version Default: None
release?: string
//Public configuration
common?: {
// Probe debug switch Default: false
debug?: boolean
// session mode default: auto
sessionMode?: 'auto' | 'manual'
// Force the specified data protocol to be sent. Default: None
sendProtocol?: string
// Page monitoring configuration
page?: {
}
// Monitor route loading Default: true
routerEnabled?: boolean
//Specify the routing mode for monitoring. Default: auto
routerMode?: 'history' | 'hash' | 'auto'
//Default waiting time for route loading operation, unit ms Default: 500
routerOperationDelay?: number
// Upload hash routing switch without ajax, default: false
uploadNoAjaxHashRouter?: boolean
// No ajax default waiting time during loading, unit ms. Default: 500
pageLoadDelay?: number
// Whether to use lcp as the first screen Default: true
lcpAsFs?: boolean
// Whether to enable mutationObserver monitoring. Default: true
mutationEnabled?: boolean
// When not using lcp to calculate the first screen, set the image resources on the first screen line. Default: None
fsResources?: string[]
// ajax monitoring configuration
ajax?: {
}
// ajax monitoring master switch Default: true
enabled?: boolean
// ajax xhr monitoring switch Default: true
xhrEnabled?: boolean
// ajax fetch monitoring switch Default: true
fetchEnabled?: boolean
// mPaas monitoring switch Default: true
mPaaSEnabled?: boolean
// Monitor the setRequestHeader interface of xhr. Default: true
hookXhrSetRequestHeader?: boolean
// Ajax blacklist Default: None
ignoreUrls?: string[]
// JS error monitoring configuration
jsError?: {
}
//Whether to monitor JS errors Default: true
enabled?: boolean
// Whether to report js errors with empty file names. Default: false
uploadEmptyFileErrors?: boolean
// Whether to try catch the asynchronous callback function. Default: false
catchAsyncCallback?: boolean
//Operation data
operation?: {
}
// User operation automatic monitoring switch Default: true
enabled?: boolean
// Whether to monitor the callbacks bound to onclick and onsubmit attributes on the html tag. Default: true
inlineEventEnabled?: boolean
// Whether to hook the onXXX (onclick, onsubmit) attributes in HTMLElement.prototype Default: true
onPropertyEnabled?: boolean
// Whether to hook addEventListener/removeEventListener Default: true
eventListenerEnabled?: boolean
//The threshold for inline event associated with lower-level requests, unit ms, default 200
inlineEventThreshold?: number
// Whether to enable automatic cross-page events Default: true
crossPageEnabled?: boolean
// Whitelist for Ajax iframe and other elements under operation Default: None
itemUrls?: string[]
// Blacklist of Ajax iframe and other elements under operation Default: None
ignoreItemUrls?: string[]
// Operation timeout unit ms, default 60000
timeout?: number
// The time difference threshold after the element is mounted to the ajax callback under operation, unit ms, default: 100
resourceAssociationThreshold?: number
//The maximum waiting time for loading elements mounted to ajax under operation, unit ms, default 10000
resourceAssociationWaitTime?: number
// apm configuration
requestTracing?: {
}
// Whether to actively add apm request header, default false
autoAddApmHeader?: boolean
//Element loading monitoring
resource?: {
}
// Whether to monitor iframe loading Default: true
iframeEnabled?: boolean
//Configuration refresh
configReload?: {
}
// Server side gets configuration switch Default: true
enabled?: boolean
//Configure the expiration time, unit: minutes, default 10
expire?: number
//Web Vitals indicator collection
webVitals?: {
}
//Master switch, default: true
enabled?: boolean
// webvitals lcp switch, default: true
lcpEnabled?: boolean
// webvitals fid switch, default: true
fidEnabled?: boolean
// webvitals cls switch, default: true
clsEnabled?: boolean
// webvitals ttfb switch, default: true
ttfbEnabled?: boolean
// webvitals fcp switch, default: true
fcpEnabled?: boolean
//Video recording plug-in configuration
replay?: {
}
// Privacy mode standard / strict, default is standard mode standard
privacyMode?: string
// Mask configuration
blockClass?: string[]
//Confusing configuration
maskTextClass?: string[]
//Ignore input configuration
ignoreClass?: string[]
}
}