Skip to content

feat: adds more metrics#14

Merged
stalniy merged 7 commits intomainfrom
feat/more-metrics
Mar 31, 2026
Merged

feat: adds more metrics#14
stalniy merged 7 commits intomainfrom
feat/more-metrics

Conversation

@stalniy
Copy link
Copy Markdown
Contributor

@stalniy stalniy commented Mar 30, 2026

Why

to improve observability

What

  1. adds cooldown logic when wallet has insufficient balance. Controlled via INSUFFICIENT_BALANCE_RETRY_DELAY_MS
  2. adds additional error_code attribute to priceUpdate metric
  3. adds blockchain price staleness metric

stalniy and others added 7 commits March 30, 2026 12:58
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds insufficientBalanceRetryDelayMs to HermesConfig (default 60s) and wires
cooldown logic so price updates are skipped until the delay expires after an
insufficient balance error, then retried automatically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@stalniy stalniy force-pushed the feat/more-metrics branch from f745013 to 7b7431b Compare March 30, 2026 14:05
@stalniy stalniy merged commit 8bb2645 into main Mar 31, 2026
1 check passed
stalniy added a commit that referenced this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants