/** * Telemetry — metryki, tracing, health. * * Kształt zbliżony do OpenTelemetry, ale framework-agnostic. * Adaptery: @echelon-framework/telemetry-otel, @echelon-framework/telemetry-mock. */ import type { CorrelationId } from '../identity/index.js'; export type MetricKind = 'counter' | 'gauge' | 'histogram'; export interface Metric { readonly name: string; readonly kind: MetricKind; readonly value: number; readonly attributes?: Readonly>; readonly at: number; } export interface Span { readonly name: string; readonly correlationId: CorrelationId; end(attributes?: Record): void; fail(error: unknown): void; } export interface TelemetryService { metric(metric: Metric): void; startSpan(name: string, correlationId: CorrelationId): Span; } export declare const TELEMETRY: import("../index.js").EchelonToken; //# sourceMappingURL=index.d.ts.map