import { InstrumentationConfig } from "@opentelemetry/instrumentation"; //#region src/resource-timing/types.d.ts /** * ResourceTimingInstrumentation Configuration */ interface ResourceTimingInstrumentationConfig extends InstrumentationConfig { /** * Number of resources to process per batch. * Default: 50 */ batchSize?: number; /** * Maximum time in milliseconds to wait for an idle callback before forcing processing. * Default: 1000 */ forceProcessingAfter?: number; /** * Maximum time in milliseconds to spend processing resources per idle callback. * Default: 50 */ maxProcessingTime?: number; /** * Maximum number of resources to queue before forcing immediate flush. * Default: 1000 */ maxQueueSize?: number; /** * Filter which resource types to capture by their initiator type * (e.g. 'xmlhttprequest', 'fetch', 'script', 'link', 'img', 'css', etc.). * When set, only entries whose initiatorType matches one of the listed values * are captured. When unset, all resource entries are captured. */ initiatorTypes?: string[]; /** * URLs to ignore. Entries whose URL matches any of the patterns will not be * captured. Strings are compared with strict equality — matching is * case-sensitive and the URL is not normalized, so a trailing slash, query * string, or different casing will not match. Prefer RegExps for robust * matching (e.g. `[/\/v1\/traces$/, /\/v1\/logs$/]`). * Avoid RegExps with the `y` flag — its stateful `lastIndex` causes * alternating match results across repeated calls. */ ignoreUrls?: (string | RegExp)[]; } //#endregion export { ResourceTimingInstrumentationConfig }; //# sourceMappingURL=types.d.ts.map