/** * Error metrics instruments * * Provides unified error tracking with slug-based identification for * observability dashboards and alerting. */ import type { Counter, Meter } from "../tracing/api-shim.js"; import type { MetricsConfig } from "../metrics/types.js"; import type { VeryfrontError } from "../../errors/types.js"; export interface ErrorInstruments { errorCounter: Counter | null; } /** * Create error tracking instruments * * - errorCounter: Total errors by slug, category, and status */ export declare function createErrorInstruments(meter: Meter, config: MetricsConfig): ErrorInstruments; /** * Record an error occurrence with metrics * * Increments error counter with slug, category, and status labels. * Used by error boundaries to automatically track all errors. * * @param error - The VeryfrontError to record * @param errorCounter - Optional counter override (for testing) */ export declare function recordError(error: VeryfrontError, errorCounter?: Counter | null): void; //# sourceMappingURL=error-instruments.d.ts.map