Shopify / Shopify/identity_cache

Log stats after every request?

Open
#264 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2k
Forks
174
Avg merge
13m
Merged PRs (30d)
3

Description

I would like to send # of cache hits, # cache misses, # cache writes, cache store latency, memoized cache hits, etc to $stdout (for transport to Librato). Is any of this information available for me to stick in an after_action or something?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the request lifecycle around the proposed after_action hook and the cache operations mentioned in the issue. Determine which hit, miss, write, latency, and memoization data IdentityCache exposes, then verify that the resulting statistics can be emitted to $stdout for transport to Librato.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.