Type alias BrowserClientReplayOptions

BrowserClientReplayOptions: {
    replaysOnErrorSampleRate?: number;
    replaysSessionSampleRate?: number;
}

Options added to the Browser SDK's init options that are specific for Replay. Note: This type was moved to @sentry/types to avoid a circular dependency between Browser and Replay.

Type declaration

  • Optional replaysOnErrorSampleRate?: number

    The sample rate for sessions that has had an error occur. This is independent of sessionSampleRate. 1.0 will record all sessions and 0 will record none.

  • Optional replaysSessionSampleRate?: number

    The sample rate for session-long replays. 1.0 will record all sessions and 0 will record none.

Generated using TypeDoc