-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support for opentelemetry #109
Comments
Can you say more about what you have in mind here? |
go sdk support trace and metric currently. and spec defines some standard attribute in here https://opentelemetry.io/docs/specs/semconv/rpc/json-rpc/ we can add some hook func to export low level data to outer, like go-redis. |
Where do you imagine these hooks would go? Given that the telemetry metrics are already per request, this seems like something that could be handled by user-defined middleware. It's not clear to me that the library needs any special features to support it. |
do you mean wrapping middleware (or filter) may used in client-side. |
Yes, if the client needs to forward something to the server, it would have to do so by including it in the parameters anyway, since that's the only place the protocol has space for data. On the server side (or in callbacks) one can inject a wrapper that captures those data. |
refer https://opentelemetry.io/docs/specs/semconv/rpc/json-rpc/
The text was updated successfully, but these errors were encountered: