import { type Attributes, type Span } from "@opentelemetry/api"; export type RetrievalStatus = "ok" | "error" | "connection_error"; export declare function otelAttributes(attributes?: Record): Attributes; export declare function recordSpanError(span: Span, error: unknown): void; export declare function withSpan(name: string, attributes: Record, callback: (span: Span) => Promise): Promise; export declare function recordDatasetOpen({ gatewayUrl, storeType, status, seconds, }: { gatewayUrl: string; storeType: string; status: RetrievalStatus; seconds: number; }): void; export declare function recordStoreOpen({ gatewayUrl, storeType, status, seconds, }: { gatewayUrl: string; storeType: string; status: RetrievalStatus; seconds: number; }): void; export declare function secondsSince(startedAt: number): number; export declare function classifyRetrievalError(error: unknown): RetrievalStatus; //# sourceMappingURL=instrumentation.d.ts.map