Shopify / Shopify/identity_cache
Log stats after every request?
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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