We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
errors.As
segment.Close
Segment.Close enriches the segment with details specific to the error passed, but since it uses type assertions, the error must be of an exact type:
Segment.Close
aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go
Lines 118 to 123 in 0532644
Lines 136 to 138 in 0532644
Lines 143 to 145 in 0532644
Using errors.As there instead of type assertions would make it work with wrapped errors as well.
The text was updated successfully, but these errors were encountered:
bhautikpip
No branches or pull requests
Segment.Close
enriches the segment with details specific to the error passed, but since it uses type assertions, the error must be of an exact type:aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go
Lines 118 to 123 in 0532644
aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go
Lines 136 to 138 in 0532644
aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go
Lines 143 to 145 in 0532644
Using
errors.As
there instead of type assertions would make it work with wrapped errors as well.The text was updated successfully, but these errors were encountered: