Skip to content

Determine programmatically what replica a request is using #385

Description

@dvandersluis

I couldn't find anything in the documentation or code so my apologies if I've overlooked something, but is there a way to determine programmatically what specific database connection is used for a query and/or Rails request? We would like to be able to tag data surfaced in our error tracker with database connection information but I have not found a way to do so yet.

Any help would be appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions