Adding observability to RubyLLM with OpenTelemetry #598
clarissalimab
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! 👋
I'm Clarissa, a developer at thoughtbot. I built an OpenTelemetry instrumentation gem for RubyLLM and wanted to share it with the community.
https://github.com/thoughtbot/opentelemetry-instrumentation-ruby_llm
It automatically instruments RubyLLM with traces that follow the Semantic conventions for generative AI systems. Chat completions, tool calls, token usage, and errors are all captured out of the box, so no manual tracing code is needed. Works with any OTel-compatible backend (Langfuse, Jaeger, Datadog, Honeycomb, Arize Phoenix, etc).
The minimal setup, along with OpenTelemetry, is:
Let me know if you have any feedback :)
Thank you for building RubyLLM, it's a really cool gem!
Beta Was this translation helpful? Give feedback.
All reactions