How to get config in Hook? #2113
-
Hi. Basically we could use data inside There is no way to report the redis address / port / name to metric collector like prometheus/grafana or opentracing. |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Jun 6, 2022
Replies: 1 comment 1 reply
-
You can save some information on the struct that implements hooks interface - see https://github.com/go-redis/redis/blob/master/extra/redisotel/redisotel.go#L21-L22 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jiekun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can save some information on the struct that implements hooks interface - see https://github.com/go-redis/redis/blob/master/extra/redisotel/redisotel.go#L21-L22