-
Notifications
You must be signed in to change notification settings - Fork 98
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
Experimental postgres plugin #402
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if queries are canceled? Do we want to support ending traces when that happens?
src/plugins/plugin-pg.js
Outdated
|
||
var SUPPORTED_VERSIONS = '^6.x'; | ||
|
||
function makeQueryWrap(api) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/plugins/plugin-pg.js
Outdated
span.addLabel('error', err); | ||
} | ||
if (res) { | ||
// TODO(mattloring): summarize once it is available on the public api |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
If it helps, you can apply this patch on top of this PR once you rebase to reflect changes since the PR was first opened: kjin@dd50a45 |
Thank you very much for putting together the patch you linked! On cancelation, if the request has been buffered but not sent, then no async work has actually been done and there is no span to report. If the request has been sent and is canceled in flight then I think it should resolve normally with information in the response indicating that it was canceled (we should verify this though). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No description provided.