0.03
A long-lived project that still receives updates
Automatic exception tracking and instrumentation for Ruby on Rails applications using PostHog
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 5.2.0
 Project Readme

PostHog Ruby

Please see the main PostHog docs.

Specifically, the Ruby integration details.

Important

Use a single client instance (singleton) — Create the PostHog client once and reuse it throughout your application. Multiple client instances with the same API key can cause dropped events and inconsistent behavior. The SDK will log a warning if it detects multiple instances. For Rails apps, use PostHog.init in an initializer (see posthog-rails).

Important

Supports Ruby 3.2 and above

We will lag behind but generally not support versions which are end-of-life as listed here https://www.ruby-lang.org/en/downloads/branches/

All 2.x versions of the PostHog Ruby library are compatible with Ruby 2.0 and above if you need Ruby 2.0 support.

Rails Integration

Using Rails? Check out posthog-rails for automatic exception tracking, ActiveJob instrumentation, and Rails-specific features.

Contributing

See CONTRIBUTING.md for local setup, example, and test instructions.

For release instructions, see RELEASING.md.