Skip to content

contrib/jinzhu/gorm: Add err check#806

Merged
knusbaum merged 6 commits into
DataDog:v1from
moonsub-kim:v1
Jan 11, 2021
Merged

contrib/jinzhu/gorm: Add err check#806
knusbaum merged 6 commits into
DataDog:v1from
moonsub-kim:v1

Conversation

@moonsub-kim

Copy link
Copy Markdown
Contributor

An implementation of #805

@knusbaum knusbaum added this to the 1.29.0 milestone Jan 7, 2021

@knusbaum knusbaum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good. Please upmerge to the latest v1 to get the CI to pass.

Comment thread contrib/jinzhu/gorm/option.go Outdated
@moonsub-kim
moonsub-kim requested a review from knusbaum January 9, 2021 10:31

@knusbaum knusbaum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks!

@knusbaum
knusbaum merged commit a5f08bc into DataDog:v1 Jan 11, 2021
dianashevchenko pushed a commit that referenced this pull request Feb 8, 2021
This commit adds the WithErrorCheck option, which allows users to specify a
function that will determine whether a given gorm error should be marked as
an error in the span.
This was referenced Mar 11, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants