/** * OpenTelemetry instrumentation for the Kanban Panel * * This follows the library instrumentation pattern: * - Uses only @opentelemetry/api (no provider/exporter dependencies) * - Gets tracer from the global provider (set up by the application) * - Returns no-op tracer if no provider is registered (safe, does nothing) * * The application (e.g., Storybook via storybook-addon-otel, or the Electron app) * is responsible for setting up the tracer provider and exporters. */ import { trace, context, SpanStatusCode, type Tracer, type Span } from '@opentelemetry/api'; export declare const TRACER_NAME = "@industry-theme/backlogmd-kanban-panel"; export declare const TRACER_VERSION: string; /** * Get the tracer instance for this library. * Returns a no-op tracer if no provider is registered. */ export declare function getTracer(): Tracer; /** * Get the currently active span, if any. * Useful for adding events to the current span context. */ export declare function getActiveSpan(): Span | undefined; /** * Execute a function within a span context. * Ensures proper context propagation for nested operations. */ export declare function withSpan(span: Span, fn: () => Promise): Promise; /** * Execute a synchronous function within a span context. */ export declare function withSpanSync(span: Span, fn: () => T): T; export { trace, context, SpanStatusCode }; export type { Tracer, Span }; //# sourceMappingURL=telemetry.d.ts.map