-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Adding gormtrace plugin #490
Conversation
@rizkybiz thanks for writing the gorm plugin. Given that we have more plugins like this in coming weeks/months, I am thinking of creating a contrib repo for such plugins. |
@rghetia No problem. I think a contrib repo is a great idea, it will help keep the API/SDK more clean/manageable in the long run. Just let me know if you'd like me to move anything once you create it, I have some other stuff inspired by older OpenCensus and OpenTracing projects/wrappers I've found and reworked for Otel so I'll stay tuned. |
@rghetia I've heard we are discussing a per-language contrib repository at the OTel governance level. Do you know if that has been decided? |
I don't know the status of that discussion. |
Would it be better instead to add the tracer to the |
@achew22 i didn’t see any plugin around sql.DB but i remember that opencencus have this kind of plugin callled ocsql https://github.com/opencensus-integrations/ocsql/blob/master/README.md. I think it’s not too much hard to convert to otel. |
I’d say people generally reach for either an ORM or they roll their own SQL using sql.DB. GORM implements it’s own DB type so it may be of merit to have both a GORM wrapper and a wrapper around the standard lib sql.DB |
Under the covers gorm uses Additionally, targeting a tracer to one of the [1] Note: this only works for connections that actually go through |
@rghetia I'm assuming I'll have to pull in the master of the Go SDK and update to not be under that umbrella correct? |
I completely agree with this, |
Closing this as it is moved to open-telemetry/opentelemetry-go-contrib#2 |
Wanted to add a plugin to ease the implementation of tracing around GORM ORM.