import { LogRecord } from "@opentelemetry/api-logs"; import { InstrumentationConfig } from "@opentelemetry/instrumentation"; //#region src/navigation/types.d.ts type ApplyCustomLogRecordDataFunction = (logRecord: LogRecord) => void; type SanitizeUrlFunction = (url: string) => string; type NavigationType = 'push' | 'replace' | 'reload' | 'traverse'; /** * NavigationInstrumentation Configuration */ interface NavigationInstrumentationConfig extends InstrumentationConfig { /** Hook to modify log records before they are emitted. */ applyCustomLogRecordData?: ApplyCustomLogRecordDataFunction; /** Use the Navigation API `currententrychange` event if available (experimental). Defaults to false. */ useNavigationApiIfAvailable?: boolean; /** Custom function to sanitize URLs before adding to log records. */ sanitizeUrl?: SanitizeUrlFunction; } //#endregion export { NavigationInstrumentationConfig, NavigationType }; //# sourceMappingURL=types.d.ts.map