UNPKG

@paychex/instrumentation-document-load

Version:
17 lines 707 B
import { Span } from '@opentelemetry/api'; import { InstrumentationConfig } from '@opentelemetry/instrumentation'; export interface DocumentLoadCustomAttributeFunction { (span: Span): 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?: DocumentLoadCustomAttributeFunction; }; } //# sourceMappingURL=types.d.ts.map