UNPKG

@coralogix/browser

Version:

Official Coralogix SDK for browsers

18 lines (17 loc) 854 B
import { InstrumentationBase, InstrumentationConfig } from '@opentelemetry/instrumentation'; import { EventName } from '../../types'; export declare const USER_INTERACTION_INSTRUMENTATION_NAME = "user-interaction"; 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 { private handler; private stop; constructor(config: CoralogixUserInteractionInstrumentationConfig); enable(): void; disable(): void; protected init(): void; }