Skip to content

feat(agents): Instrument RubyLLM workflows - #3185

Draft
sl0thentr0py wants to merge 1 commit into
neel/ruby-llm/tool-instrumentationfrom
neel/ruby-llm/workflows
Draft

sl0thentr0py wants to merge 1 commit into
neel/ruby-llm/tool-instrumentationfrom
neel/ruby-llm/workflows

Conversation

@sl0thentr0py

@sl0thentr0py sl0thentr0py commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds workflow and workflow-step grouping spans for RubyLLM.

  • Creates ai.pipeline workflow spans and nested ai.run step spans.
  • Propagates gen_ai.pipeline.name to workflow, step, chat, and tool descendants.
  • Preserves workflow grouping without labeling workflow steps as agent runs.
  • Uses the shared child-span and span data conventions from the preceding integrations.

Testing

  • Uses RubyLLM workflow instrumentation with Sentry::DummyTransport.
  • Verifies workflow and step hierarchy plus pipeline attribution on GenAI descendants.
  • Verified with RubyLLM 2.2.3 on the Ruby 3.2 and Ruby 4.0 test cells.

Issues

@sl0thentr0py
sl0thentr0py added this pull request to stack #3182 November 4, 2026 16:24
@sl0thentr0py
sl0thentr0py marked this pull request as draft November 4, 2026 16:54
@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

RUBY-217

@crmne

crmne commented Nov 7, 2026

Copy link
Copy Markdown

Looks good: the workflow fields are on every event, so no patching needed here. One thing: please use workflow.step in the spec instead of the internal Support::Instrumentation.instrument. Same request as on #3183: stick to the public API, and if something's missing, ask me and I'll add it.

@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from 15100b6 to de991a7 Compare November 26, 2026 13:14
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit d95eaa2.

Main concerns: data sent to Sentry, host performance, reach.

This label is a hint for reviewers, not an approval.

@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from de991a7 to 4146353 Compare November 26, 2026 13:19
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from 4146353 to 97abcfd Compare November 26, 2026 13:20
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from 97abcfd to 491d251 Compare November 26, 2026 13:24
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from 491d251 to c59dfdc Compare November 26, 2026 13:25
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from b6da635 to d08fc36 Compare November 26, 2026 14:05
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from d08fc36 to f09bf70 Compare November 26, 2026 14:08
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from f09bf70 to 1502247 Compare November 26, 2026 14:23
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from 1502247 to bc55396 Compare November 26, 2026 14:37
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
@sl0thentr0py
sl0thentr0py force-pushed the neel/ruby-llm/workflows branch from bc55396 to 4df02b6 Compare November 26, 2026 14:44
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 26, 2026
Co-Authored-By: OpenAI <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants