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
Add 99designs/gqlgen instrumentation #761
Conversation
hey @Aneurysm9 @dashpole, @evantorrie, @jmacd, @MrAlias, @paivagustavo @XSAM this is available for review now. |
Any plan to merge this? |
@hirenvadalia im still waiting for review |
This is awesome @ravilushqa! we'd love to see this merged so we can start leveraging this ourselves |
Codecov Report
@@ Coverage Diff @@
## main #761 +/- ##
=======================================
+ Coverage 69.6% 70.1% +0.5%
=======================================
Files 77 80 +3
Lines 4955 5099 +144
=======================================
+ Hits 3451 3578 +127
- Misses 1365 1378 +13
- Partials 139 143 +4
|
First of all, awesome PR! I have a couple questions - possibly out of scope:
|
@hobbsh thanks!
If I understand correctly u talk about data from gql. In that situation i see using logging middleware like in my PR if it's needed. If u need data from my middleware, it's stored in spans, so u can catch it from it.
I didn't work with exemplars so it's hard to say for me. |
The use-case is to log the traceID with the GraphQL query so we can correlate logs to traces. I am not seeing an example of using logging middleware like |
this pr has nothing to do with logging, so there is no such example. |
I appreciate you taking the time to describe this. Thanks! |
instrumentation/github.com/99designs/gqlgen/otelgqlgen/README.md
Outdated
Show resolved
Hide resolved
instrumentation/github.com/99designs/gqlgen/otelgqlgen/gqlgen.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/99designs/gqlgen/otelgqlgen/gqlgen.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/99designs/gqlgen/otelgqlgen/gqlgen.go
Outdated
Show resolved
Hide resolved
PS. I do not have any more findings 😉 |
instrumentation/github.com/99designs/gqlgen/otelgqlgen/example/go.mod
Outdated
Show resolved
Hide resolved
@ravilushqa Nice work. I will try to ask others to review. In meantime, you can create a dedicated repository that will contain this instrumentation similarly to https://github.com/XSAM/otelsql |
thanks! i'll work on package like that. In addition i've found that we forget to remove serviceName from pr. i did it in the last commit upd. |
Hi @pellared any news when I can be merged? |
I do not think it will be merged. See: #1100 However, I hope that my code reviews were helpful. |
Thanks for the contribution. According to our new instrumentation policy, we are no longer accepting new instrumentation to the project as we do not have the developer bandwidth to support it. If you are able, please consider maintaining this instrumentation in your own repository and listing it in the the OpenTelemetry Registry. |
This PR adds tracer for 99designs/gqlgen