Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-instrument queries #180

Open
vecerek opened this issue Mar 28, 2024 · 0 comments
Open

Auto-instrument queries #180

vecerek opened this issue Mar 28, 2024 · 0 comments

Comments

@vecerek
Copy link
Contributor

vecerek commented Mar 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant