Skip to content

Add structured log for each cache miss and cache hit on the creator profile query #709

Description

@Chucks1093

Summary

The creator profile query uses an in-memory cache to avoid repeated Horizon calls. There is currently no visibility into cache effectiveness. A debug-level log on each cache hit and miss would let the team measure the hit rate and tune the TTL.

Scope

  • Emit a debug-level log on each cache hit with fields: creator_wallet, cache_key, hit: true, ttl_remaining_ms
  • Emit a debug-level log on each cache miss with fields: creator_wallet, cache_key, hit: false
  • Logs emitted before the cache lookup result is used
  • Log level is debug — must not appear in production log output at the default log level

Acceptance Criteria

  • Cache hit log emitted with all four fields
  • Cache miss log emitted with all three fields
  • Logs emitted before the result is used
  • Log level is debug (suppressed at default info level in production)

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions