sqlfx icon indicating copy to clipboard operation
sqlfx copied to clipboard

Auto-instrument queries

Open vecerek opened this issue 1 year ago • 0 comments

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.

vecerek avatar Mar 28 '24 18:03 vecerek