Ruby error tracking installation
Add the PostHog Ruby gem to your Gemfile: Initialize the PostHog client with your API key and host: Once installed, you can manually send events to test your integration: Using Ruby on Rails? The To capture exceptions in your Ruby application, use the The Install the gem
RequiredConfigure PostHog
RequiredSend events
RecommendedManually capture exceptions
Requiredposthog-rails gem provides automatic exception capture for controllers and background jobs. Select "Ruby on Rails" from the SDK list for setup instructions.capture_exception method:capture_exception method accepts the following parameters:Param Type Description exceptionExceptionThe exception object to capture (required) distinct_idStringThe distinct ID of the user (optional) propertiesHashAdditional properties to attach to the exception event (optional)

