UNPKG

@vtex/diagnostics-nodejs

Version:

Diagnostics library for Node.js applications

27 lines 989 B
import { LogAttributes } from '@opentelemetry/api-logs'; import { Exporter } from './exporters'; import { LoggerProvider } from '@opentelemetry/sdk-logs'; import { Resource } from '@opentelemetry/resources'; export interface LogClient { debug(message: string, attributes?: LogAttributes): void; info(message: string, attributes?: LogAttributes): void; warn(message: string, attributes?: LogAttributes): void; error(message: string, attributes?: LogAttributes): void; fatal(message: string, attributes?: LogAttributes): void; shutdown(): Promise<void>; getProvider(): LoggerProvider; } export interface LogsClientConfig { resource?: Resource; provider?: LoggerProvider; exporter?: Exporter; batchSize?: number; flushIntervalMs?: number; timeoutMillis?: number; maxQueueSize?: number; useSimpleProcessor?: boolean; setGlobalProvider?: boolean; loggerName?: string; version?: string; } //# sourceMappingURL=logs.d.ts.map