@coralogix/browser
Version:
Official Coralogix SDK for browsers
17 lines (16 loc) • 898 B
TypeScript
import { InstrumentationBase, InstrumentationConfig } from '@opentelemetry/instrumentation';
import { EventName } from '../../types';
export declare const USER_INTERACTION_INSTRUMENTATION_NAME = "interactions";
export declare const USER_INTERACTION_INSTRUMENTATION_VERSION = "1";
export type UserInteractionEventsConfig = Partial<Record<EventName, boolean>>;
export interface CoralogixUserInteractionInstrumentationConfig extends InstrumentationConfig {
events?: UserInteractionEventsConfig;
}
export declare const DEFAULT_INSTRUMENTED_EVENTS: UserInteractionEventsConfig;
export declare class CoralogixUserInteractionInstrumentation extends InstrumentationBase<CoralogixUserInteractionInstrumentationConfig> {
private readonly rageClicksTracker;
constructor(config: CoralogixUserInteractionInstrumentationConfig);
enable(): void;
disable(): void;
protected init(): void;
}