UNPKG

backtrace-js

Version:

Backtrace.io error reporting tool for client-side applications

62 lines (61 loc) 2.28 kB
import { BacktraceReport } from '../model/backtraceReport'; export interface IBacktraceClientOptions { timeout: number; endpoint: string; token?: string; userAttributes: object | { [index: string]: any; }; disableGlobalHandler: boolean; handlePromises: boolean; sampling?: number; rateLimit: number; filter?: (report: BacktraceReport) => boolean; breadcrumbLimit?: number; enableMetricsSupport: boolean; metricsSubmissionUrl?: string; /** * @deprecated This option is not used anymore and has been left only for backwards compatibility. Please don't use this option anymore. */ debugBacktrace?: boolean; /** * @deprecated This option is not used anymore and has been left only for backwards compatibility. Please don't use this option anymore. */ tabWidth: number; /** * @deprecated This option is not used anymore and has been left only for backwards compatibility. Please don't use this option anymore. */ contextLineCount: number; } export declare type InitBacktraceClientOptions = Pick<IBacktraceClientOptions, 'endpoint'> & Partial<IBacktraceClientOptions>; /** * @deprecated Use `IBacktraceClientOptions` instead. */ export declare class BacktraceClientOptions implements IBacktraceClientOptions { timeout: number; endpoint: string; token?: string; userAttributes: object | { [index: string]: any; }; disableGlobalHandler: boolean; handlePromises: boolean; sampling?: number | undefined; rateLimit: number; filter?: (report: BacktraceReport) => boolean; breadcrumbLimit?: number; enableMetricsSupport: boolean; metricsSubmissionUrl?: string; /** * @deprecated This option is not used anymore and has been left only for backwards compatibility. Please don't use this option anymore. */ debugBacktrace?: boolean; /** * @deprecated This option is not used anymore and has been left only for backwards compatibility. Please don't use this option anymore. */ tabWidth: number; /** * @deprecated This option is not used anymore and has been left only for backwards compatibility. Please don't use this option anymore. */ contextLineCount: number; }