Skip to content

Add Rails Railtie for zero-config auto-instrumentation via ActiveSupport::Notifications #11

Description

@isaka1022

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    laterLong-termroadmapPlanned roadmap item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions