You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(metrics): address review findings before merge
- Replace all hardcoded test ports (9093-19200) with port=0 and read
actual port from server_address[1] to prevent CI port collisions
- Clarify CacheMetrics.window_sizes docstring: windowing is not
automatic; callers must pass window= explicitly to get_stats()
- Add README note that entry_count/total_size_bytes are populated for
the memory backend only; all other backends report 0
- Standardize MetricsContext guards to 'if self._m is not None:'
- Remove dead _init_prometheus_metrics no-op method and its call site
- Replace deprecated typing.Deque/Dict with deque[...]/dict[...] builtins
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,8 @@ The metrics system tracks:
364
364
* **Size limit rejections**: Entries rejected due to ``entry_size_limit``
365
365
* **Cache size (memory backend only)**: Number of entries and total size in bytes for the in-memory cache core
366
366
367
+
Note: ``entry_count`` and ``total_size_bytes`` are populated only for the memory backend. Other backends (pickle, redis, sql, mongo) currently always report ``0`` for these fields.
0 commit comments