Documentation ¶
Overview ¶
Package ppgoredisv8 instruments the go-redis/redis/v8 package (https://github.com/go-redis/redis).
This package instruments the go-redis/v8 calls. Use the NewHook as the redis.Hook.
rc = redis.NewClient(redisOpts) rc.AddHook(ppgoredisv8.NewHook(redisOpts))
It is necessary to pass the context containing the pinpoint.Tracer to redis.Client.
rc = rc.WithContext(pinpoint.NewContext(context.Background(), tracer)) rc.Pipeline()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterHook ¶
func NewClusterHook(opts *redis.ClusterOptions) redis.Hook
NewClusterHook creates a redis.Hook to instrument redis cluster calls.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.