Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
ClientWrapper wraps the *redis.Client to trace redis calls
func NewClient ¶
func NewClient(opt *redis.Options) *ClientWrapper
NewClient returns a client to the Redis Server specified by Options and wrapped by thundra
func WrapClient ¶
func WrapClient(c *redis.Client) *ClientWrapper
WrapClient wraps the given *redis.Clint and returns a new *ClientWrapper that can be usedas the redis client and traced by
func (*ClientWrapper) Context ¶
func (cw *ClientWrapper) Context() context.Context
Context returns the current active context of the ClientWrapper
func (*ClientWrapper) Pipeline ¶
func (cw *ClientWrapper) Pipeline() redis.Pipeliner
Pipeline creates a Pipeline from a ClientWrapper
func (*ClientWrapper) WithContext ¶
func (cw *ClientWrapper) WithContext(ctx context.Context) *ClientWrapper
WithContext sets the given context to the ClientWrapper, so that new spans created using this context to have correct parent
Click to show internal directories.
Click to hide internal directories.