import { Span, Tracer } from '@opentelemetry/api'; import type { Context } from '../context.js'; export interface TracingOptions { serviceName?: string; serviceVersion?: string; exporter?: 'console' | 'jaeger' | 'zipkin' | 'otlp'; jaegerEndpoint?: string; zipkinEndpoint?: string; otlpEndpoint?: string; sampleRate?: number; } export declare class TracingManager { private tracer; private provider; constructor(options?: TracingOptions); createSpan(name: string, parentSpan?: Span): Span; getTracer(): Tracer; shutdown(): Promise; } export declare function tracingPlugin(options?: TracingOptions): (ctx: Context, next: () => Promise) => Promise; export declare function tracedFetch(url: string, options?: RequestInit, span?: Span): Promise; //# sourceMappingURL=tracing.d.ts.map