Documentation ¶
Overview ¶
Package ppgoredis instruments the go-redis/redis package (https://github.com/go-redis/redis).
This package instruments the go-redis calls. Use the NewClient as the redis.NewClient.
rc = ppgoredis.NewClient(redisOpts)
It is necessary to pass the context containing the pinpoint.Tracer to Client using Client.WithContext.
rc = rc.WithContext(pinpoint.NewContext(context.Background(), tracer)) rc.Pipeline()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps redis.Client.
type ClusterClient ¶
type ClusterClient struct { *redis.ClusterClient // contains filtered or unexported fields }
ClusterClient wraps redis.ClusterClient.
func NewClusterClient ¶
func NewClusterClient(opt *redis.ClusterOptions) *ClusterClient
NewClusterClient returns a new ClusterClient ready to instrument.
func (*ClusterClient) WithContext ¶
func (c *ClusterClient) WithContext(ctx context.Context) *ClusterClient
WithContext sets the context. It is possible to trace only when the given context contains a pinpoint.Tracer.
Click to show internal directories.
Click to hide internal directories.