contrib/database/sql: Add WithErrorCheck options by soh335 · Pull Request #1315 · DataDog/dd-trace-go

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 #1314...