Skip to content

Add Redis write-path and end-to-end cache outcome telemetry #44

Description

@lan17

Priority

P2 — Medium — important hardening or API work after the safety foundations.

Problem

Current metrics time gets, fallbacks, and serialization, and observe serialized size. Redis writes have no client latency timer; watermark-suppressed writes have no dedicated outcome; and there is no full-wrapper duration/final-outcome signal.

Evidence:

Acceptance criteria

  • Measure Redis write latency and stable outcomes: written, watermark-suppressed, skipped, and failed.
  • Add end-to-end duration/outcome for local hit, remote hit, fallback, uncached pass-through, and error.
  • Keep labels bounded and exclude IDs, arguments, and raw Redis keys.
  • Extend custom metrics adapters compatibly, using optional methods or an approved versioned migration.
  • Test every outcome plus metrics-adapter failure.
  • Include instrumentation overhead in the performance budget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions