import { Span } from '@opentelemetry/api'; import { InstrumentationConfig } from '@opentelemetry/instrumentation'; export interface DocumentLoadCustomAttributeFunction { (span: Span): void; } export interface ResourceFetchCustomAttributeFunction { (span: Span, resource: PerformanceResourceTiming): void; } /** * DocumentLoadInstrumentationPlugin Config */ export interface DocumentLoadInstrumentationConfig extends InstrumentationConfig { /** Function for adding custom attributes on the document load, document fetch and or resource fetch spans */ applyCustomAttributesOnSpan?: { documentLoad?: DocumentLoadCustomAttributeFunction; documentFetch?: DocumentLoadCustomAttributeFunction; resourceFetch?: ResourceFetchCustomAttributeFunction; }; } //# sourceMappingURL=types.d.ts.map