Background
redis-py 7.4.0 was released on March 24, 2026. Notable changes:
- Security: Password leak fix (#3998) — Fixed
__repr__ methods for ConnectionPool where passwords could leak in plain text logs.
- OTel observability exposure (#3996) — Basic OpenTelemetry classes and functions are now importable through
redis.observability.
- Cluster metrics fix (#3999) — Fixed
AttributeError in cluster metrics recording when connection is None.
Impact
- Password leak fix: Directly relevant to APM/observability. If Scout or any logging captures connection pool string representations, passwords would have been exposed in logs. Scout should verify its own logging doesn't trigger
__repr__ on redis connection pools.
- OTel observability classes: redis-py is investing in first-party observability via
redis.observability. This may overlap with or complement Scout's redis instrumentation. Worth tracking for Scout's instrumentation strategy — if redis-py provides native tracing hooks, Scout could leverage them instead of monkey-patching.
- Cluster metrics fix: The fix for
AttributeError when connection is None could resolve edge-case crashes in Scout's cluster monitoring if Scout accesses connection objects during metrics collection.
Suggested Action
- Audit Scout's redis instrumentation to ensure it doesn't log or capture
ConnectionPool.__repr__() output that could contain passwords (even with the fix, good practice to verify).
- Investigate
redis.observability — evaluate whether Scout can leverage these native OTel hooks for redis instrumentation rather than monkey-patching.
- Run Scout's test suite against redis-py 7.4.0 to verify compatibility.
References
Background
redis-py 7.4.0 was released on March 24, 2026. Notable changes:
__repr__methods forConnectionPoolwhere passwords could leak in plain text logs.redis.observability.AttributeErrorin cluster metrics recording when connection is None.Impact
__repr__on redis connection pools.redis.observability. This may overlap with or complement Scout's redis instrumentation. Worth tracking for Scout's instrumentation strategy — if redis-py provides native tracing hooks, Scout could leverage them instead of monkey-patching.AttributeErrorwhen connection is None could resolve edge-case crashes in Scout's cluster monitoring if Scout accesses connection objects during metrics collection.Suggested Action
ConnectionPool.__repr__()output that could contain passwords (even with the fix, good practice to verify).redis.observability— evaluate whether Scout can leverage these native OTel hooks for redis instrumentation rather than monkey-patching.References