<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz" -->

---
title: Observability for your LLM-powered apps: OTel...
description: Adding structured observability to RubyLLM-powered applications using OpenTelemetry is now possible with a new gem released by Thoughtbot. The...
canonical: https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Observability for your LLM-powered apps: OTel Instrumentation for RubyLLM | daily.dev
og:description: Adding structured observability to RubyLLM-powered applications using OpenTelemetry is now possible with a new gem released by Thoughtbot. The...
og:url: https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz
og:image: https://api.daily.dev/og/posts/cbJ99D3Wz.png
og:image:alt: Observability for your LLM-powered apps: OTel Instrumentation for RubyLLM
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Observability for your LLM-powered apps: OTel Instrumentation for RubyLLM

**[thoughbot](https://daily.dev/sources/thoughbot)** · 4 min read · 2 upvotes · 0 comments

## Summary

Adding structured observability to RubyLLM-powered applications using OpenTelemetry is now possible with a new gem released by Thoughtbot. The opentelemetry-instrumentation-ruby_llm gem automatically captures traces for chat completions, tool calls, and token usage following OpenTelemetry GenAI semantic conventions. Setup requires adding three gems and a single initializer — no manual trace wrapping needed. Traces can be exported to any OTLP-compatible backend, including Langfuse, providing latency timelines, cost tracking, tool call details, and full audit trails. This is especially valuable for regulated industries requiring visibility into AI behavior in production.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thoughtbot.com/blog/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm>

## Similar posts on daily.dev

- [sinaptia/ruby\_llm-instrumentation: Rails instrumentation for RubyLLM](https://daily.dev/posts/sinaptia-ruby-llm-instrumentation-rails-instrumentation-for-rubyllm-b1caliuwy) · Ruby Flow · 1 upvotes · 0 comments
- [RubyLLM::Instrumentation: The foundation for RubyLLM monitoring](https://daily.dev/posts/rubyllm-instrumentation-the-foundation-for-rubyllm-monitoring-pqz55h2av) · RUBYLAND · 1 upvotes · 0 comments
- [OpenLLMetry: Instrumentation For Your Agent Workflows](https://daily.dev/posts/openllmetry-instrumentation-for-your-agent-workflows-vzofdpmrr) · Cloud Native Now · 1 upvotes · 0 comments
- [The lazy developer’s guide to observing your own code](https://daily.dev/posts/the-lazy-developer-s-guide-to-observing-your-own-code-zvcqnpe8i) · CNCF · 1 upvotes · 0 comments
- [LLMs create a new blind spot in observability](https://daily.dev/posts/llms-create-a-new-blind-spot-in-observability-2nt8yv81n) · The New Stack · 2 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#observability](https://daily.dev/tags/observability), [#opentelemetry](https://daily.dev/tags/opentelemetry)

[View this post on daily.dev](https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Observability for your LLM-powered apps: OTel Instrumentation for RubyLLM","url":"https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz"},"datePublished":"2026-03-18T20:30:07.500Z","dateModified":"2026-03-18T20:30:37.599Z","description":"Adding structured observability to RubyLLM-powered applications using OpenTelemetry is now possible with a new gem released by Thoughtbot. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5274121f3d0e58ab0ed5f02336cea247?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5274121f3d0e58ab0ed5f02336cea247?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"thoughbot","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"thoughbot","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/9fe12feb57f944a29ff63a79e350081a","url":"https://daily.dev/sources/thoughbot"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/observability-for-your-llm-powered-apps-otel-instrumentation-for-rubyllm-cbj99d3wz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,observability,opentelemetry","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"thoughbot","item":"https://daily.dev/sources/thoughbot"},{"@type":"ListItem","position":3,"name":"Observability for your LLM-powered apps: OTel Instrumentation for RubyLLM"}]}
```

