/** * OpenTelemetry Logs bridge for Photon. * * Zero-dep no-op that upgrades gracefully when * `@opentelemetry/api-logs` is installed. Mirrors the dynamic-import * pattern used in otel.ts and metrics.ts so the runtime stays * dependency-free by default and production deployments can wire up * any OTLP-compatible log backend by installing the SDK. * * The photon Logger pushes each emitted record through `emitOtelLog` * after writing to its local stream. When the SDK is present the * record is forwarded to the OTel logs bridge with severity mapped * to the standard scale and ambient trace context auto-attached. */ export interface OtelLogRecord { level: 'debug' | 'info' | 'warn' | 'error'; message: string; attributes?: Record; } /** * Emit a log record to OpenTelemetry if the SDK is installed. No-op otherwise. * The ambient request context (photon/tool/traceId/callerId) is pulled lazily * so callers do not have to thread it through. */ export declare function emitOtelLog(record: OtelLogRecord): void; /** * Returns true if the OTel logs SDK is available. */ export declare function isOtelLogsEnabled(): boolean; /** * Wait for the initial probe. For tests. */ export declare function waitForLogsProbe(): Promise; /** * Reset cached state. For tests only. */ export declare function _resetLogsCache(): void; //# sourceMappingURL=logs.d.ts.map