/** * Internal constants for telemetry middleware * These constants are for internal use only */ /** * Metrics names as defined in metrics-dashboard.README.md */ export declare const INTERNAL_METRICS_NAMES: { readonly HTTP_REQUESTS_TOTAL: "http_requests_total"; readonly HTTP_REQUEST_DURATION_SECONDS: "http_request_duration_seconds"; readonly HTTP_REQUEST_MEMORY_USAGE_BYTES: "http_request_memory_usage_bytes"; readonly HTTP_REQUEST_CPU_TIME_SECONDS: "http_request_cpu_time_seconds"; readonly MEMORY_USAGE_PERCENT: "memory_usage_percent"; readonly CPU_USAGE_PERCENT: "cpu_usage_percent"; readonly DB_QUERY_DURATION_SECONDS: "db_query_duration_seconds"; readonly DB_CONNECTION_POOL_USAGE_PERCENT: "db_connection_pool_usage_percent"; readonly DB_MEMORY_USAGE_BYTES: "db_memory_usage_bytes"; }; /** * Metrics descriptions */ export declare const INTERNAL_METRICS_DESCRIPTIONS: { readonly http_requests_total: "Total number of HTTP requests"; readonly http_request_duration_seconds: "HTTP request duration in seconds"; readonly http_request_memory_usage_bytes: "Memory usage per HTTP request in bytes"; readonly http_request_cpu_time_seconds: "CPU time per HTTP request in seconds"; readonly memory_usage_percent: "System memory usage percentage"; readonly cpu_usage_percent: "System CPU usage percentage"; }; /** * Registry keys for unified-route context storage */ export declare const INTERNAL_REGISTRY_KEYS: { readonly TELEMETRY_START_TIME: "telemetry:startTime"; readonly TELEMETRY_START_MEMORY: "telemetry:startMemory"; readonly TELEMETRY_START_CPU: "telemetry:startCpu"; readonly TELEMETRY_SPAN: "telemetry:span"; readonly TELEMETRY_LOGGER: "telemetry:logger"; readonly TELEMETRY_TRACE_ID: "telemetry:traceId"; readonly TELEMETRY_SPAN_ID: "telemetry:spanId"; readonly TELEMETRY_REQUEST_ID: "telemetry:requestId"; readonly TELEMETRY_ROUTE_INFO: "telemetry:routeInfo"; readonly TELEMETRY_CURRENT_LOGGER: "telemetry:currentLogger"; }; /** * Default values for telemetry configuration */ export declare const INTERNAL_DEFAULTS: { readonly SPAN_NAME_PREFIX: "http"; readonly OPERATION_NAME_PREFIX: "http_request"; readonly DEFAULT_ROUTE: "unknown"; readonly DEFAULT_METHOD: "unknown"; readonly DEFAULT_STATUS_CODE: 0; readonly MEMORY_SAMPLE_INTERVAL_MS: 100; readonly CPU_SAMPLE_INTERVAL_MS: 100; }; /** * Error messages for internal use */ export declare const INTERNAL_ERROR_MESSAGES: { readonly TELEMETRY_PROVIDER_NOT_FOUND: "Telemetry provider not found in registry"; readonly SPAN_NOT_FOUND: "Telemetry span not found in registry"; readonly LOGGER_NOT_FOUND: "Telemetry logger not found in registry"; readonly INVALID_TRACE_HEADER: "Invalid trace header format"; readonly RESOURCE_TRACKING_FAILED: "Resource tracking failed"; };