Optional
consoleMethodsToRecord?: ConsoleMethods[]Optional
disableBackgroundRecording?: booleanIf set, Highlight will not record when your app is not visible (in the background). By default, Highlight will record in the background.
Optional
disableConsoleRecording?: booleanSpecifies whether Highlight will record console messages.
Optional
disableNetworkRecording?: booleanThis disables recording network requests. The data includes the URLs, the size of the request, and how long the request took.
Optional
disableSessionRecording?: 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.
Optional
enableCanvasRecording?: booleanSpecifies whether to record canvas elements or not.
Optional
enablePerformanceRecording?: booleanSpecifies whether to record performance metrics (e.g. FPS, device memory).
Optional
enablePromisePatch?: booleanSpecifies whether window.Promise should be patched to record the stack trace of promise rejections.
Optional
enableSegmentIntegration?: booleanOptional
environment?: "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.
Optional
inlineImages?: 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
Optional
inlineStylesheet?: 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.
Optional
inlineVideos?: booleanSpecifies whether to inline
Optional
integrations?: IntegrationOptionsOptional
isCrossOriginIframe?: booleanDeprecated: this setting is now inferred automatically. Passing this option does nothing.
Optional
manualStart?: booleanSpecifies if Highlight should not automatically start recording when the app starts.
This should be used with H.start()
and H.stop()
if you want to control when Highlight records.
Optional
networkRecording?: boolean | NetworkRecordingOptionsSpecifies how and what Highlight records from network requests and responses.
Optional
otel?: OtelOptionsOTLP options for OpenTelemetry tracing. Instrumentations are enabled by default.
Optional
otlpEndpoint?: stringOTLP endpoint for OpenTelemetry tracing.
Optional
privacySetting?: 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.
Optional
recordCrossOriginIframe?: booleanEnables recording of cross-origin iframes. Should be set in both the parent window and in the cross-origin iframe.
Optional
reportConsoleErrors?: booleanSpecifies whether Highlight will report console.error
invocations as Highlight Errors.
Optional
samplingStrategy?: SamplingStrategyConfigure the recording sampling options, eg. how frequently we record canvas updates.
Optional
sendMode?: "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).
Optional
sessionCookie?: trueBy default, session data is stored in the sessionStorage
of the browser.
Set to true
to store session data in a cookie instead.
This can help with compliance for cookie-consent regulation.
Optional
sessionShortcut?: SessionShortcutOptionsSpecifies the keyboard shortcut to open the current session in Highlight.
https://docs.highlight.run/session-shortcut for more information.
Optional
storageMode?: "sessionStorage" | "localStorage"Set to sessionStorage
to bypass all window.localStorage
usage.
This can help with compliance for cookie-consent regulation.
Using sessionStorage
will cause app close+reopens to start a new highlight session,
as the session ID will not persist.
Optional
tracingOrigins?: 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
disabledConsoleRecording
istrue
.