dbresolver
dbresolver copied to clipboard
For Read/Write splitting, allow logging of which DSN each query goes to
Describe the feature
I am using the Read/Write splitting feature. I would like to log for each query which DSN it goes to (or at least if it goes to a source or replica).
Motivation
This would be used for troubleshooting failed or slow DB instances, and for testing.
Related Issues
N/A.
+1
+1 @jinzhu
+1
+1