Repository navigation
feat(agents): Instrument RubyLLM tools - #3184
sl0thentr0py wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 01f1aad. Configure here.
| ensure | ||
| Sentry.send(:set_current_hub_internal, previous_hub) | ||
| end | ||
| end |
There was a problem hiding this comment.
Fiber tool runs corrupt hub state
Medium Severity
with_hub save/restores the current hub via thread-local storage, and run applies that wrap in every concurrency mode. RubyLLM :fibers runs tools as cooperative fibers on the same thread, so overlapping with_hub calls overwrite each other's saved hub. After the batch finishes, the request thread can be left with a stale cloned hub instead of the original, so later spans and events lose the request scope.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 01f1aad. Configure here.
|
Blocking for 2.2: please replace the |
01f1aad to
ae9b359
Compare
PR risk: mediumFor commit Main concerns: data sent to Sentry, host performance, reach. This label is a hint for reviewers, not an approval. |
ae9b359 to
fcdcfa8
Compare
fcdcfa8 to
b9df3c7
Compare
b9df3c7 to
d1cdf71
Compare
d1cdf71 to
3e23c60
Compare
dc4ffc1 to
5514614
Compare
5514614 to
d794fdc
Compare
d794fdc to
92f6b48
Compare
92f6b48 to
4f801a0
Compare
Co-Authored-By: OpenAI <noreply@openai.com>


Summary
Adds RubyLLM local tool execution tracing and concurrent-tool context propagation.
gen_ai.execute_toolspans with tool names and privacy-gated JSON arguments and results.RubyLLM::Chat::ToolConcurrency.runwithout patching global thread behavior.DataConventionsused by chat instrumentation.Testing
Issues