Commit 4591d64
* 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 test verifying 401 responses are not tagged as errors
Adds a test endpoint returning 401 and a corresponding test that confirms
Scout's Starlette/FastAPI middleware correctly tracks 401 Unauthorized
responses without tagging them as errors. Only 5xx responses trigger the
error tag, so a FastAPI OAuth2 empty bearer token rejection (which returns
401) is properly categorized as a client error, not a server error.
Closes #838
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 19081a5 commit 4591d64
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
474 | 478 | | |
475 | 479 | | |
476 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
0 commit comments