NetworkRecordOptions

Properties

NameType
initiatorTypesInitiatorType[]
maskRequestFn(data: CapturedNetworkRequest) => CapturedNetworkRequest | undefined
recordHeadersboolean | { request: boolean; response: boolean; }
recordBodyboolean | string[] | { request: boolean | string[]; response: boolean | string[]; }
recordInitialRequestsboolean
recordPerformanceboolean

whether to record PerformanceEntry events for network requests

performanceEntryTypeToObservestring[]

the PerformanceObserver will only observe these entry types

payloadSizeLimitBytesnumber

the maximum size of the request/response body to record NB this will be at most 1MB even if set larger

streamNetworkBodyboolean

when true, read bodies through a streaming reader that stops at payloadSizeLimitBytes instead of buffering the whole body and then enforcing the limit. Reads only a clone of the body, so it never consumes the stream the page itself reads.

payloadHostDenyListstring[]

some domains we should never record the payload for example other companies session replay ingestion payloads aren't super useful but are gigantic if this isn't provided we use a default list if this is provided - we add the provided list to the default list i.e. we never record the payloads on the default deny list