{"repo":"thoughtbot/opentelemetry-instrumentation-ruby_llm","free":true,"listed":false,"github":"https://github.com/thoughtbot/opentelemetry-instrumentation-ruby_llm","clone":"git clone https://github.com/thoughtbot/opentelemetry-instrumentation-ruby_llm.git","description":"OpenTelemetry instrumentation for RubyLLM. 💬🔭","language":"Ruby","stars":51,"topics":["distributed-tracing","llm","opentelemetry","opentelemetry-instrumentation","rails","ruby","ruby-llm","telemetry","tracing"],"license":"MIT","category":"analytics","readme_excerpt":"OpenTelemetry RubyLLM Instrumentation OpenTelemetry instrumentation for RubyLLM. How do I get started? Install the gem using: Or, if you use bundler, include opentelemetry-instrumentation-ruby llm in your Gemfile . Usage To use the instrumentation, call use with the name of the instrumentation: Alternatively, you can also call use all to install all the available instrumentation. Configuration Content capture By default, message content is not captured . To enable it: Or set the environment variable: When enabled, the following attributes are added to chat spans: Attribute Description ----------- ------------- gen ai.system instructions System instructions provided via with instructions gen ai.input.messages Input messages sent to the model gen ai.output.messages Final output messages from the model [!WARNING] Captured content may include sensitive or personally identifiable information (PII). Use with caution in production environments. Tool result length Tool call results are recorded on execute tool spans via gen ai.tool.call.result , truncated to 500 characters by default. Adjust the limit with tool result max length : Custom attributes Use with otel attributes to add arbitrary attributes to the span for each request. This is useful for adding per-request metadata like Langfuse prompt linking or trace-level tags: Values can also be callables (Procs/lambdas) that are evaluated after each completion, giving access to response data: Attributes persist across calls on the sam","default_branch":null,"files":null,"tree":[],"storefront":"/r/thoughtbot","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thoughtbot/opentelemetry-instrumentation-ruby_llm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}