OptionalconsoleMethodsToRecord?: ConsoleMethods[]OptionaldisableConsoleRecording?: booleanSpecifies whether the SDK will record console messages.
OptionalenableLongtaskRecording?: booleanSpecifies whether to record main-thread longtask entries (>50ms) as
long_task.duration histogram samples.
OptionalenablePerformanceRecording?: booleanSpecifies whether to record performance metrics (e.g. FPS, device memory).
OptionalenablePromisePatch?: booleanSpecifies whether window.Promise should be patched to record the stack trace of promise rejections.
OptionalenableReportingObserver?: booleanSpecifies whether to subscribe to the browser Reporting API and emit CSP/intervention reports as errors and deprecation reports as warn logs.
Optionalenvironment?: "development" | "staging" | "production" | stringSpecifies the environment your application is running in. This is useful to distinguish whether your session was recorded on localhost or in production.
OptionalnetworkRecording?: boolean | NetworkRecordingOptionsSpecifies how and what the SDK records from network requests and responses.
Optionalotel?: OtelOptions & { otlpEndpoint?: string }OTLP options for OpenTelemetry tracing. Instrumentations are enabled by default.
OptionalproductAnalytics?: boolean | ProductAnalyticsEventsSpecifies whether to record product analytics events.
OptionalreportConsoleErrors?: booleanSpecifies whether the SDK will report console.error invocations as Errors.
OptionaltracingOrigins?: boolean | (string | RegExp)[]Specifies where the backend of the app lives. If specified, the SDK will attach the traceparent header to outgoing requests whose destination URLs match a substring or regexp from this list, so that backend errors can be linked back to the session. If 'true' is specified, all requests to the current domain will be matched.
Specifies which console methods to record. The value here will be ignored if
disabledConsoleRecordingistrue.