Skip to content

Add structured log for React Query cache miss on creator profile fetch #556

Description

@Chucks1093

Summary

When a creator profile fetch results in a cache miss and triggers a network request, there is no log to help diagnose slow profile loads in production. A structured log on cache miss should record the creator ID and request duration for observability.

Scope

  • Add a query observer on the creator profile query that logs on cache miss
  • Log fields: creator_id, cache_status: 'miss', duration_ms (time from request start to data arrival)
  • Log should only fire in non-test environments
  • Log level: debug

Acceptance Criteria

  • Log emitted on cache miss with all three fields
  • Log not emitted on cache hit
  • Log not emitted in test environment
  • Log level is debug

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions