6f057b8895
Prometheus Metrics: - Add METRICS_LABELS fallback for defaultLabels env config - Separate includeSystem from collectDefaultMetrics with own env var - Parse URL in /metrics endpoint to support querystrings and trailing slashes - Sort keys in labelsToKey for stable/deterministic lookups - Update documentation with all environment variables Retry Utils: - Remove abort listener on sleep completion to prevent memory leak - Apply maxDelay cap AFTER jitter to guarantee max delay limit - Validate/normalize attempt parameter in calculateDelay - Count retries only when attempt > 1 (actual retry, not first try) - Use metrics.retryExhausted instead of generic errors for exhausted retries Tests: - Add consistency tests to verify retryConfigs.rsocket matches constants