@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
21 lines • 727 B
TypeScript
/**
* OpenTelemetry Tracer Service
*
* Provides lazy initialization and management of distributed tracing.
* Follows OpenTelemetry best practices with support for multiple exporters.
*/
import { SpanOptions } from '@opentelemetry/api';
import { TracedSpan, TracerService } from './types';
/**
* Get or create the global tracer instance
*/
export declare function getTracer(): TracerService;
/**
* Shutdown the global tracer instance
*/
export declare function shutdownTracer(): Promise<void>;
/**
* Helper function to wrap async operations with tracing
*/
export declare function withSpan<T>(name: string, fn: (span: TracedSpan) => Promise<T>, options?: SpanOptions): Promise<T>;
//# sourceMappingURL=tracer.d.ts.map