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

[Feature Request] Allow unwrapping otelConn to get underlying driver conn #121

Open
mgabeler-lee-6rs opened this issue Feb 28, 2024 · 0 comments

Comments

@mgabeler-lee-6rs
Copy link

I have an app that uses *sql.Conn.Raw(...) in places, and I'd like to add otelsql instrumentation to the app. However the places that use Raw() get stuck because they get a *otelsql.otelConn instead of the underlying driver connection, and can't unwrap it (without reflection) to get the real one.

It would be nice if there was a method such as Unwrap() driver.Conn which made this possible without reflection

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

No branches or pull requests

1 participant