Skip to content
New issue

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

fix(otelsql): record error and status when SQL returns an error #114

Merged
merged 2 commits into from
Mar 17, 2024

Conversation

empire
Copy link
Contributor

@empire empire commented Dec 6, 2023

The Span ends early when SQL returns an error, which prevents Otelsql from recording the error.
This commit fixes this issue by deferring the Span.End() call.

Fixes: #115

@empire
Copy link
Contributor Author

empire commented Dec 6, 2023

@vmihailenco , could you please take a look at this P.R.

Thanks

@empire empire changed the title Record error and status for Otelsql when SQL returns an error fix(otelsql): record error and status when SQL returns an error Dec 10, 2023
The Span ends early when SQL returns an error, which prevents Otelsql from recording the error.
This commit fixes this issue by deferring the Span.End() call.

Fixes: uptrace#115
@vmihailenco vmihailenco merged commit 8494afe into uptrace:main Mar 17, 2024
3 checks passed
@vmihailenco
Copy link
Member

@empire thanks for the fix.

@empire
Copy link
Contributor Author

empire commented Mar 17, 2024

@vmihailenco Thanks for merging this pull request. When do you plan to release this fix?

@vmihailenco
Copy link
Member

@empire v0.2.4 should be available withing few minutes.

@empire
Copy link
Contributor Author

empire commented Mar 18, 2024

It sounds great. Thank you.

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.

otelsql: Record error and status when SQL returns an error
2 participants