Skip to content

feat(sentry-ruby): Add RubyLLM integration for AI agent tracing#2884

Open
elct9620 wants to merge 1 commit intogetsentry:masterfrom
elct9620:feature/ruby_llm
Open

feat(sentry-ruby): Add RubyLLM integration for AI agent tracing#2884
elct9620 wants to merge 1 commit intogetsentry:masterfrom
elct9620:feature/ruby_llm

Conversation

@elct9620
Copy link

@elct9620 elct9620 commented Mar 4, 2026

Description

Instrument RubyLLM::Chat#ask and RubyLLM::Chat#execute_tool following the Sentry AI agents spec (gen_ai.chat / gen_ai.execute_tool spans).

Tool arguments and results are PII-gated. Registered as an opt-in patch like sequel.

Resolves: #2405

References:

Test with Sentry:

截圖 2026-03-04 晚上9 50 52

Warning

This PR was written by Opus 4.6 with human review

Instrument RubyLLM::Chat#ask and #execute_tool following the Sentry AI
agents spec (gen_ai.chat / gen_ai.execute_tool spans). Tool arguments
and results are PII-gated. Registered as an opt-in patch like sequel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support LLM monitoring in Ruby SDK.

1 participant