-
Notifications
You must be signed in to change notification settings - Fork 420
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
contrib/database/sql: Add WithErrorCheck option #1314
Labels
proposal/accepted
Accepted proposals
Comments
soh335
added a commit
to soh335/dd-trace-go
that referenced
this issue
Jun 1, 2022
WithErrorCheck specifies a function fn which determines whether the passed error should be marked as an error. The fn is called whenever a database/sql operation finishes with an error. close DataDog#1314
soh335
added a commit
to soh335/dd-trace-go
that referenced
this issue
Jun 2, 2022
WithErrorCheck specifies a function fn which determines whether the passed error should be marked as an error. The fn is called whenever a database/sql operation finishes with an error. close DataDog#1314
soh335
added a commit
to soh335/dd-trace-go
that referenced
this issue
Jun 2, 2022
WithErrorCheck specifies a function fn which determines whether the passed error should be marked as an error. The fn is called whenever a database/sql operation finishes with an error. close DataDog#1314
soh335
added a commit
to soh335/dd-trace-go
that referenced
this issue
Jun 2, 2022
WithErrorCheck specifies a function fn which determines whether the passed error should be marked as an error. The fn is called whenever a database/sql operation finishes with an error. close DataDog#1314
Fine by me! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it is same feature with #805.
Sometime, we need to ignore specific error from contrib/database/sql.
In our case, need to ignore insert error like that
Error 1062: Duplicate entry 'xxx' for key 'PRIMARY'
.So need
WithErrorCheck
option. How about ?The text was updated successfully, but these errors were encountered: