instacart / makara

A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.

Home Page:http://tech.taskrabbit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Determine programmatically what replica a request is using

dvandersluis opened this issue · comments

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!