Repository navigation
implement driver.Validator on otConn - #619
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #619 +/- ##
=====================================
Coverage 86.3% 86.4%
=====================================
Files 16 16
Lines 748 752 +4
=====================================
+ Hits 646 650 +4
Misses 75 75
Partials 27 27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Twister915
force-pushed
the
implement-driver-validator
branch
from
April 7, 2026 13:59
ab96c09 to
75dde6b
Compare
XSAM
approved these changes
Apr 8, 2026
XSAM
left a comment
Owner
There was a problem hiding this comment.
Thank you, @Twister915, for the PR and the clean fix.
Could you update the changelog file to reflect this change?
Twister915
force-pushed
the
implement-driver-validator
branch
from
April 8, 2026 18:16
75dde6b to
eb8a32b
Compare
Contributor
Author
|
@XSAM done! |
XSAM
reviewed
Apr 8, 2026
Co-authored-by: Sam Xie <[email protected]>
XSAM
enabled auto-merge (squash)
April 8, 2026 20:38
Merged
XSAM
added a commit
that referenced
this pull request
Jul 13, 2026
### Removed - **BREAKING** Remove support for `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable, legacy `db.sql.latency` metric, and `db.statement` span attribute. Only stable Semantic Conventions are now used. (#617) ### Changed - ~~Upgrade OTel Semconv to `v1.40.0`.~~ (#606) - Upgrade OTel Semconv to `v1.44.0`. (#615) ### Fixed - Implement `driver.Validator` on `otConn` so that `database/sql` connection pool health checks are properly delegated to the underlying driver connection. (#619) - `AttributesFromDSN` no longer panics on DSNs that wrap a unix-socket path in the `protocol(/path/to.sock)` form, e.g. `unix(/tmp/mysql.sock)/dbname`. The parser now extracts the address from inside the parentheses before splitting on `/`. (#625)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is my proposed fix for #618. I implement
driver.Validatoron*otConn.I have an alternate version of this locally (which I am happy to push if you'd like), which adds
IsValid()to the existing mockConn instead of introducing a separate mock type, if you like. But that would make it a little tricky to test the case where a connection does not implementIsValid()