Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record error and status for Otelsql when SQL returns an error
The Span ends early when SQL returns an error, which prevents Otelsql from recording the error and setting the status. This commit fixes this issue by deferring the Span.End() call.
- Loading branch information