-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tagging queries without transactions? #12
Comments
Only tasks support tagging. You can always use a task even for a single query, it is no overhead in performance. Alternatively, you can add your own method via event |
@vitaly-t I have tried the log tagged tasks but it seems that tag is not available on the info object as I have expected. Is there another way to intercept with the logging so that I get the tag a standalone attribute? |
Event |
I've added an initial commit to expose the entire ctx = task/transaction context within the Will finish it later, when I get a chance ;) |
@vitaly-t thanks |
Hi @vitaly-t
I was wondering if there is a way to tag a query that is not a task or transaction? I would like to provider a context id so that I know what http request has caused the query execution when I log it with pg-monitor. For example:
Thanks in advance
The text was updated successfully, but these errors were encountered: