/** * @param {BrowserSdkConfiguration} cfg * @returns {BrowserSdk} */ export function startBrowserSdk(cfg?: BrowserSdkConfiguration): BrowserSdk; export type InstrumentationsConfigMap = { "document-load": import("@opentelemetry/browser-instrumentation/experimental/document-load").DocumentLoadInstrumentationConfig; "long-animation-frame": import("@opentelemetry/browser-instrumentation/experimental/long-animation-frame").LongAnimationFrameInstrumentationConfig; "navigation": import("@opentelemetry/browser-instrumentation/experimental/navigation").NavigationInstrumentationConfig; "navigation-timing": import("@opentelemetry/browser-instrumentation/experimental/navigation-timing").NavigationTimingInstrumentationConfig; "resource-timing": import("@opentelemetry/browser-instrumentation/experimental/resource-timing").ResourceTimingInstrumentationConfig; "fetch": import("@opentelemetry/browser-instrumentation/experimental/fetch").FetchInstrumentationConfig; "user-action": import("@opentelemetry/browser-instrumentation/experimental/user-action").UserActionInstrumentationConfig; "xhr": import("@opentelemetry/browser-instrumentation/experimental/xhr").XhrInstrumentationConfig; "errors": import("@opentelemetry/browser-instrumentation/experimental/errors").ErrorsInstrumentationConfig; "web-vitals": import("@opentelemetry/browser-instrumentation/experimental/web-vitals").WebVitalsInstrumentationConfig; }; /** * Configuration that is defined in upstream SDK */ export type SdkConfig = { disabled?: boolean | undefined; logLevel?: "warn" | "error" | "none" | "info" | "debug" | "verbose" | "all" | undefined; serviceName?: string | undefined; serviceVersion?: string | undefined; resourceAttributes?: import("@opentelemetry/api").Attributes | undefined; exportConfig?: { url?: string; tracesUrl?: string; logsUrl?: string; headers?: Record; } | undefined; }; /** * Configuration properties that are only in EDOT */ export type EdotConfig = { instrumentations?: Partial | undefined; session?: import("./session/config.js").SessionConfig | undefined; ignoreFetchUrls?: (string | RegExp)[] | undefined; disableInstrumentations?: (keyof InstrumentationsConfigMap)[] | undefined; }; export type BrowserSdkConfiguration = SdkConfig & EdotConfig; export type BrowserSdk = { shutdown: () => Promise; getSession: import("./session.js").SessionApi["getSession"]; observe: import("./session.js").SessionApi["observe"]; endSession: import("./session.js").SessionApi["endSession"]; }; export type DefaultConfigProps = "logLevel" | "serviceName" | "resourceAttributes" | "exportConfig";