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!