UNPKG

@erickluis00/otelviewer

Version:

Shared OpenTelemetry tracing utilities, types, and batch processor for Realtime OpenTelemetry Viewer [WIP]

37 lines 1.3 kB
/** * Configuration interface for OTEL tracing setup */ export interface OtelTracingConfig { /** URL of the OTEL viewer ingest endpoint */ ingestUrl?: string; /** Secret for authenticating with the ingest endpoint */ ingestSecret?: string; /** Project ID for trace identification */ projectId?: string; /** Snapshot interval in milliseconds (how often to send batched spans) */ snapshotInterval?: number; /** Port number for the viewer server (to avoid tracing viewer requests) */ viewerPort?: number; } /** * Default configuration values */ export declare const DEFAULT_CONFIG: Required<OtelTracingConfig>; /** * Environment variable names used for configuration */ export declare const ENV_VARS: { readonly INGEST_URL: "OTEL_VIEWER_INGEST_URL"; readonly INGEST_SECRET: "OTEL_VIEWER_INGEST_SECRET"; readonly PROJECT_ID: "OTEL_PROJECT_ID"; readonly VIEWER_PORT: "OTEL_VIEWER_PORT"; }; /** * Create configuration from environment variables and optional overrides */ export declare function createConfig(overrides?: OtelTracingConfig): Required<OtelTracingConfig>; /** * Utility function to log configuration on startup */ export declare function logConfig(config: Required<OtelTracingConfig>): void; //# sourceMappingURL=config.d.ts.map