sqlfx
sqlfx copied to clipboard
Auto-instrument queries
Following the example of @effect/platform's HTTP Server, sqlfx should also create a span for every sql query, including transaction start, commit, and rollback.
The span should contain the following information:
- sql statement
- error (if present)
- db host (since multiple clients may be used in an application)
It should be made possible to add custom tags. Bonus points, if the above information can be assigned to user-defined tags, e.g. assigning the db host to db.host tag instead of a potential library default host tag.