UNPKG

@coralogix/browser

Version:

Official Coralogix SDK for browsers

37 lines (36 loc) 1 kB
import { InstrumentationConfig } from '@opentelemetry/instrumentation'; import { CoralogixEventType, CoralogixOtelWebOptionsInstrumentations } from '../types'; export interface CoralogixWebVitalsMetrics { lcp: boolean; fid: boolean; cls: boolean; inp: boolean; ttfb: boolean; fcp: boolean; tbt: boolean; lt: boolean; } export interface CoralogixWebVitalsInstrumentationConfig extends InstrumentationConfig { metrics: Partial<CoralogixWebVitalsMetrics>; } export declare enum ResourceInitiatorTypes { Media = "media", Script = "script", Css = "css", Beacon = "beacon", Img = "img", Font = "font", Doc = "doc", Xhr = "xmlhttprequest", Fetch = "fetch", Iframe = "iframe", Video = "video", Audio = "audio", Track = "track", Other = "other" } export type InternalInstrumentationConfig = { Instrument: any; confKey: keyof CoralogixOtelWebOptionsInstrumentations | CoralogixEventType; disable: boolean; };