Optional
alwaysSpecify the storage buffer type implementation.
(Optional) Provide user an option to convert undefined field to user defined value.
Optional
cors[Optional] Specifies the Cross-Origin Resource Policy (CORP) for the endpoint.
This value is included in the response header as Cross-Origin-Resource-Policy
,
which helps control how resources can be shared across different origins.
Possible values:
same-site
: Allows access only from the same site.same-origin
: Allows access only from the same origin (protocol, host, and port).cross-origin
: Allows access from any origin.(Optional) The ability for the user to provide extra headers
Optional
disable[Optional] Disable events splitting during sendbeacon. Default: false
The master off switch. Do not send any data if set to TRUE
Don't use XMLHttpRequest or XDomainRequest (for IE < 9) by default instead attempt to use fetch() or sendBeacon. If no other transport is available it will still use XMLHttpRequest
The JSON format (normal vs line delimited). True means line delimited JSON.
Optional
enable(Optional) Enable the sender to return a promise so that manually flushing (and general sending) can wait for the request to finish. Note: Enabling this may cause unhandled promise rejection errors to occur if you do not listen and handle any rejection response, this should only be for manual flush attempts. Defaults to false
Store a copy of a send buffer in the session storage
The url to which payloads will be sent
(Optional) The number of events that can be kept in memory before the SDK starts to drop events. By default, this is 10,000.
Optional
httpXHROverride[Optional] The HTTP override that should be used to send requests, as an IXHROverride object. By default during the unload of a page or if the event specifies that it wants to use sendBeacon() or sync fetch (with keep-alive), this override will NOT be called. If alwaysUseXhrOverride configuration value is set to true, the override will always be used. The payload data (first argument) now also includes any configured 'timeout' (defaults to undefined) and whether you should avoid creating any synchronous XHR requests 'disableXhr' (defaults to false/undefined)
(Optional) Override the instrumentation key that this channel instance sends to
Is retry handler disabled. If enabled, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error) and 503 (service unavailable).
The maximum interval allowed between calls to batchInvoke
The maximum size of a batch in bytes
Optional
max(Optional) The specific max retry count for each telemetry item. Default: 10 if it is set to 0, means no retry allowed if it is set to undefined, means no limit for retry times
Is beacon disabled on page unload. If enabled, flush events through beaconSender.
If fetch keepalive is supported do not use it for sending events during unload, it may still fallback to fetch() without keepalive
Optional
retry(Optional) The specific error codes that will cause a retry of sending data to the backend.
Optional
transports[Optional] Either an array or single value identifying the requested TransportType type that should be used. This is used during initialization to identify the requested send transport, it will be ignored if a httpXHROverride is provided.
Optional
unload[Optional] Either an array or single value identifying the requested TransportType type(s) that should be used during unload or events marked as sendBeacon. This is used during initialization to identify the requested send transport, it will be ignored if a httpXHROverride is provided and alwaysUseXhrOverride is true.
[Optional] By default during unload (or when you specify to use sendBeacon() or sync fetch (with keep-alive) for an event) the SDK ignores any provided httpXhrOverride and attempts to use sendBeacon() or fetch(with keep-alive) when they are available. When this configuration option is true any provided httpXhrOverride will always be used, so any provided httpXhrOverride will also need to "handle" the synchronous unload scenario.