uptrace / opentelemetry-go-extra

OpenTelemetry instrumentations for Go
https://uptrace.dev/get/instrument/
BSD 2-Clause "Simplified" License
314 stars 72 forks source link

otelsql: Record error and status when SQL returns an error #115

Closed empire closed 7 months ago

empire commented 10 months ago

Currently, when SQL returns an error, the error is not recorded and the status is not set.

Pull request: https://github.com/uptrace/opentelemetry-go-extra/pull/114

empire commented 7 months ago

Hi @vmihailenco, I hope you are doing well. Could you please take a look at this issue and the PR?

Thanks.