-
Notifications
You must be signed in to change notification settings - Fork 81
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
Added support for go-sql-driver #161
Conversation
Hi Thiyagu, Have updated few files. Please verify that things looks right. |
It looks good
On Fri, 23 Sep 2022 at 7:03 PM, Subhrajyoti ***@***.***> wrote:
Hi Thiyagu, Have updated few files. Please verify that things looks right.
—
Reply to this email directly, view it on GitHub
<#161 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APLZWLBXS6QP2XZYQNG5PMDV7WWSZANCNFSM6AAAAAAQQAPSY4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
[image: User Image]
[image: LinkedIn] <https://www.linkedin.com/company/searceinc/>[image:
YouTube] <https://www.youtube.com/channel/UCo5Glw9EniPolbN0bR9VnBg>[image:
Twitter] <https://twitter.com/searce>
Thiyagu Nataraj
Lead Software Engineer
M:+91-9171767385
www.searce.com <https://searce.com/>
[image: Searce Logo] <https://searce.com/> solving for better
The information contained in this communication is intended solely for the
use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally privileged
information. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please notify
us immediately by responding to this email and then delete it from your
system. Searce is neither liable for the proper and complete transmission
of the information contained in this communication nor for any delay in its
receipt.
|
Please resolve the comments as they may not be required after the last commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This OTEL propagation model will not work. Please do the needful change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks okay.
How much effort will it be to move all these into a folder one level down go/go-sql
?
This is now under go
folder, but the implementation is only for go database/sql
. It's better to separate it in my opinion from start.
ctx := AddHttpRouterTags(r, context.Background()) | ||
|
||
got := db.withComment(ctx, "Select 1") | ||
want := "Select 1/*driver=database%2Fsql,framework=net%2Fhttp,route=hello%2F1*/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR implements support for QueryRow method and QueryContext method
Usage
Import sqlcommentergo and use it's db driver
For http-router middleware implementation