dd-trace-go
dd-trace-go copied to clipboard
contrib/database/sql: Add WithErrorCheck option
Hi, it is same feature with https://github.com/DataDog/dd-trace-go/issues/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 ?
Fine by me!
@gbbr Thank you for quick response. Ready to review p-r https://github.com/DataDog/dd-trace-go/pull/1315 👍