OptionalconsoleMethodsToRecord?: ConsoleMethods[]OptionaldisableBackgroundRecording?: booleanIf set, Highlight will not record when your app is not visible (in the background). By default, Highlight will record in the background.
OptionaldisableConsoleRecording?: booleanSpecifies whether Highlight will record console messages.
OptionaldisableNetworkRecording?: booleanThis disables recording network requests. The data includes the URLs, the size of the request, and how long the request took.
OptionaldisableSessionRecording?: booleanSpecifies whether Highlight will record user session replays. Unless you are using Highlight only for error monitoring, you do not want to set this to true.
OptionalenableCanvasRecording?: booleanSpecifies whether to record canvas elements or not.
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.
OptionalenableSegmentIntegration?: booleanOptionalenvironment?: "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.
OptionalinlineImages?: booleanSpecifies whether to inline images into the recording. This means that images that are local to the client (eg. client-generated blob: urls) will be serialized into the recording and will be valid on replay. This will also use canvas snapshotting to inline
OptionalinlineStylesheet?: booleanSpecifies whether to inline stylesheets into the recording. This means that stylesheets that are local to the client (eg. client-generated blob: urls) will be serialized into the recording and will be valid on replay. Only enable this if you are running into issues with client-local stylesheets. May negatively affect performance.
OptionalinlineVideos?: booleanSpecifies whether to inline
Optionalintegrations?: IntegrationOptionsOptionalisCrossOriginIframe?: booleanDeprecated: this setting is now inferred automatically. Passing this option does nothing.
OptionalnetworkRecording?: boolean | NetworkRecordingOptionsSpecifies how and what Highlight records from network requests and responses.
Optionalotel?: OtelOptionsOTLP options for OpenTelemetry tracing. Instrumentations are enabled by default.
OptionalotlpEndpoint?: stringOTLP endpoint for OpenTelemetry tracing.
OptionalprivacySetting?: PrivacySettingOptionSpecifies how much data Highlight should redact during recording. strict - Highlight will redact all text data on the page. default - Highlight will redact text data on the page that is associated with personal identifiable data. none - Highlight will not redact any text data on the page. // Redacted text will be randomized. Instead of seeing "Hello World" in a recording, you will see "1fds1 j59a0".
https://docs.highlight.run/docs/privacy for more information.
OptionalrecordCrossOriginIframe?: booleanEnables recording of cross-origin iframes. Should be set in both the parent window and in the cross-origin iframe.
OptionalreportConsoleErrors?: booleanSpecifies whether Highlight will report console.error invocations as Highlight Errors.
OptionalsamplingStrategy?: SamplingStrategyConfigure the recording sampling options, eg. how frequently we record canvas updates.
OptionalsendMode?: "webworker" | "local"By default, data is serialized and send by the Web Worker. Set to local to force
sending from the main js thread. Only use local for custom environments where Web Workers
are not available (ie. Figma plugins).
OptionalsessionShortcut?: SessionShortcutOptionsSpecifies the keyboard shortcut to open the current session in Highlight.
https://docs.highlight.run/session-shortcut for more information.
OptionaltracingOrigins?: boolean | (string | RegExp)[]Specifies where the backend of the app lives. If specified, Highlight will attach the X-Highlight-Request 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.