Skip to content

Rate-limit Event Ledger #5- Metrics #2152

Description

@adi0106

Description

Adds OpenTelemetry counters and a gauge to the cache, using the existing OTel setup in the service. Instruments each path added in earlier PRs: cache hits, misses, evictions (labelled by reason), and a gauge for current cache size.

Definition of Done:

  • Metrics follow the service naming convention: event_ledger_cache_*
  • Counters are pre-initialized to zero so they appear on the first Prometheus scrape
  • Cache size gauge reflects the current entry count after every insert and eviction

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions