Commit d173e34
Add Redis Cluster instrumentation support (#844)
* Use Job.id property instead of removed get_id() method
rq v2.7 refactored Job.id from `id = property(get_id, set_id)` to a
`@property` decorator, removing get_id() as a callable method.
Job.id has been available since rq v0.5.0 so this is backwards compatible.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Support FastMCP 3.x while maintaining 2.x backwards compatibility
FastMCP 3.0 replaced private _call_tool_mcp()/_list_tools_mcp() with
public call_tool()/list_tools() methods, and changed get_tool() to
return None instead of raising when a tool is not found.
- Update instrumentation to handle get_tool() returning None
- Update tests with compat helpers that use the correct API based on
the installed fastmcp version
- Remove the fastmcp<3 version pin from tox.ini (no longer needed)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add Redis Cluster instrumentation support
Extend Redis instrumentation to cover RedisCluster.execute_command()
when available, providing visibility into cluster operations including
the new async Cluster PubSub feature in redis-py.
Closes #840
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent eb7c0e5 commit d173e34
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
58 | 79 | | |
59 | 80 | | |
60 | 81 | | |
| |||
0 commit comments