@launchdarkly/observability + @launchdarkly/session-replay
    Preparing search index...

    Type Alias HighlightOptions

    HighlightOptions: CommonOptions & {
        consoleMethodsToRecord?: ConsoleMethods[];
        disableBackgroundRecording?: boolean;
        disableConsoleRecording?: boolean;
        disableNetworkRecording?: boolean;
        disableSessionRecording?: boolean;
        enableCanvasRecording?: boolean;
        enablePerformanceRecording?: boolean;
        enablePromisePatch?: boolean;
        enableSegmentIntegration?: boolean;
        environment?: "development" | "staging" | "production" | string;
        inlineImages?: boolean;
        inlineStylesheet?: boolean;
        inlineVideos?: boolean;
        integrations?: IntegrationOptions;
        isCrossOriginIframe?: boolean;
        manualStart?: boolean;
        networkRecording?: boolean | NetworkRecordingOptions;
        otel?: OtelOptions;
        otlpEndpoint?: string;
        privacySetting?: PrivacySettingOption;
        recordCrossOriginIframe?: boolean;
        reportConsoleErrors?: boolean;
        samplingStrategy?: SamplingStrategy;
        sendMode?: "webworker" | "local";
        sessionCookie?: true;
        sessionShortcut?: SessionShortcutOptions;
        storageMode?: "sessionStorage" | "localStorage";
        tracingOrigins?: boolean | (string | RegExp)[];
    }

    Type declaration

    • OptionalconsoleMethodsToRecord?: ConsoleMethods[]

      Specifies which console methods to record. The value here will be ignored if disabledConsoleRecording is true.

      All console methods.
      
      consoleMethodsToRecord: ['log', 'info', 'error']
      
    • OptionaldisableBackgroundRecording?: boolean

      If set, Highlight will not record when your app is not visible (in the background). By default, Highlight will record in the background.

      false
      
    • OptionaldisableConsoleRecording?: boolean

      Specifies whether Highlight will record console messages.

      false
      
    • OptionaldisableNetworkRecording?: boolean

      This disables recording network requests. The data includes the URLs, the size of the request, and how long the request took.

      false
      

      Use networkRecording instead.

    • OptionaldisableSessionRecording?: boolean

      Specifies 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.

      false
      
    • OptionalenableCanvasRecording?: boolean

      Specifies whether to record canvas elements or not.

      false
      
    • OptionalenablePerformanceRecording?: boolean

      Specifies whether to record performance metrics (e.g. FPS, device memory).

      true
      
    • OptionalenablePromisePatch?: boolean

      Specifies whether window.Promise should be patched to record the stack trace of promise rejections.

      true
      
    • OptionalenableSegmentIntegration?: boolean
    • Optionalenvironment?: "development" | "staging" | "production" | string

      Specifies the environment your application is running in. This is useful to distinguish whether your session was recorded on localhost or in production.

      'production'
      
    • OptionalinlineImages?: boolean

      Specifies 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

      false
      
    • OptionalinlineStylesheet?: boolean

      Specifies 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.

      true
      
    • OptionalinlineVideos?: boolean

      Specifies whether to inline

      false
      
    • Optionalintegrations?: IntegrationOptions
    • OptionalisCrossOriginIframe?: boolean

      Deprecated: this setting is now inferred automatically. Passing this option does nothing.

    • OptionalmanualStart?: boolean

      Specifies 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.

      false
      
    • OptionalnetworkRecording?: boolean | NetworkRecordingOptions

      Specifies how and what Highlight records from network requests and responses.

    • Optionalotel?: OtelOptions

      OTLP options for OpenTelemetry tracing. Instrumentations are enabled by default.

    • OptionalotlpEndpoint?: string

      OTLP endpoint for OpenTelemetry tracing.

    • OptionalprivacySetting?: PrivacySettingOption

      Specifies 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?: boolean

      Enables recording of cross-origin iframes. Should be set in both the parent window and in the cross-origin iframe.

      false
      
    • OptionalreportConsoleErrors?: boolean

      Specifies whether Highlight will report console.error invocations as Highlight Errors.

      false
      
    • OptionalsamplingStrategy?: SamplingStrategy

      Configure 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).

    • OptionalsessionCookie?: true

      By 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.

    • OptionalsessionShortcut?: SessionShortcutOptions

      Specifies the keyboard shortcut to open the current session in Highlight.

    • OptionalstorageMode?: "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.

    • 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.

      tracingOrigins: ['localhost', /^//, 'backend.myapp.com']