GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - traceloop/openllmetry-ruby: Sister project to OpenLLMetry, but in Ruby. Open-source observability for your LLM application, based on OpenTelemetry

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
sample-app
sample-app
 
 
semantic_conventions_ai
semantic_conventions_ai
 
 
traceloop-sdk
traceloop-sdk
 
 
.gitignore
.gitignore
 
 
.ruby-version
.ruby-version
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

For Ruby

Open-source observability for your LLM application

Get started ยป

Slack | Docs | Website

OpenLLMetry is released under the Apache-2.0 License PRs welcome! git commit activity Slack community channel Traceloop Twitter

OpenLLMetry is a set of extensions built on top of OpenTelemetry that gives you complete observability over your LLM application. Because it uses OpenTelemetry under the hood, it can be connected to your existing observability solutions - Datadog, Honeycomb, and others.

It's built and maintained by Traceloop under the Apache 2.0 license.

The repo contains standard OpenTelemetry instrumentations for LLM providers and Vector DBs, as well as a Traceloop SDK that makes it easy to get started with OpenLLMetry, while still outputting standard OpenTelemetry data that can be connected to your observability stack. If you already have OpenTelemetry instrumented, you can just add any of our instrumentations directly.

๐Ÿš€ Getting Started

The easiest way to get started is to use our SDK. For a complete guide, go to our docs.

Install the SDK:

gem install traceloop-sdk

Then, to start instrumenting your code, just add this line to your code:

require "traceloop/sdk"

traceloop = Traceloop::SDK::Traceloop.new

That's it. You're now tracing your code with OpenLLMetry!

Now, you need to decide where to export the traces to.

โซ Supported (and tested) destinations

  • Traceloop
  • Dynatrace
  • Datadog
  • New Relic
  • Honeycomb
  • Grafana Tempo
  • HyperDX
  • SigNoz
  • OpenTelemetry Collector

See our docs for instructions on connecting to each one.

๐Ÿช— What do we instrument?

OpenLLMetry is in early-alpha exploratory stage, and we're still figuring out what to instrument. As opposed to other languages, there aren't many official LLM libraries (yet?), so for now you'll have to manually log prompts:

require "openai"

client = OpenAI::Client.new

traceloop.llm_call() do |tracer|
  tracer.log_prompt(model="gpt-3.5-turbo", user_prompt="Tell me a joke about OpenTelemetry")
  response = client.chat(
    parameters: {
      model: "gpt-3.5-turbo",
      messages: [{ role: "user", content: "Tell me a joke about OpenTelemetry" }]
    })
  tracer.log_response(response)
end

๐ŸŒฑ Contributing

Whether it's big or small, we love contributions โค๏ธ Check out our guide to see how to get started.

Not sure where to get started? You can:

  • Book a free pairing session with one of our teammates!
  • Join our Slack, and ask us any questions there.

๐Ÿ’š Community & Support

  • Slack (For live discussion with the community and the Traceloop team)
  • GitHub Discussions (For help with building and deeper conversations about features)
  • GitHub Issues (For any bugs and errors you encounter using OpenLLMetry)
  • Twitter (Get news fast)

๐Ÿ™ Special Thanks

To @patrickdebois, who suggested the great name we're now using for this repo!

About

Sister project to OpenLLMetry, but in Ruby. Open-source observability for your LLM application, based on OpenTelemetry

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

15 stars

Watchers

0 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.