What
Ship a Langfuse::Railtie that subscribes to ActiveSupport::Notifications events (e.g., sql.active_record, process_action.action_controller) and automatically creates Langfuse spans with zero application-level code changes.
Why
Rails developers expect gem integrations to work out of the box. A Railtie enables LLM observability data to appear in Langfuse dashboards simply by adding the gem to the Gemfile, matching the DX of APM tools like Skylight and Scout. No competing Ruby Langfuse gem currently provides Rails auto-instrumentation.
Effort estimate
L (1 week+) — design the subscription mapping, handle sampling and filtering, integrate with the async flush layer (issue #6), and write integration tests against a dummy Rails app.
What
Ship a
Langfuse::Railtiethat subscribes toActiveSupport::Notificationsevents (e.g.,sql.active_record,process_action.action_controller) and automatically creates Langfuse spans with zero application-level code changes.Why
Rails developers expect gem integrations to work out of the box. A Railtie enables LLM observability data to appear in Langfuse dashboards simply by adding the gem to the Gemfile, matching the DX of APM tools like Skylight and Scout. No competing Ruby Langfuse gem currently provides Rails auto-instrumentation.
Effort estimate
L (1 week+) — design the subscription mapping, handle sampling and filtering, integrate with the async flush layer (issue #6), and write integration tests against a dummy Rails app.