import { Span as OTelSpan, ReadableSpan as OTelReadableSpan } from '@opentelemetry/sdk-trace-base'; import { LiveSpan } from '../core/entities/span'; /** * Hooks to be executed by the span processor. * Primary used for adding custom processing to the span for autologging integrations. */ type OnSpanStartHook = (span: LiveSpan) => void; type OnSpanEndHook = (span: LiveSpan) => void; export declare function registerOnSpanStartHook(hook: OnSpanStartHook): void; export declare function getOnSpanStartHooks(): OnSpanStartHook[]; export declare function registerOnSpanEndHook(hook: OnSpanEndHook): void; export declare function getOnSpanEndHooks(): OnSpanEndHook[]; export declare function executeOnSpanStartHooks(span: OTelSpan): void; export declare function executeOnSpanEndHooks(span: OTelReadableSpan): void; export {};