Documentation ¶
Overview ¶
Package apmredigo provides helpers for tracing github.com/gomodule/redigo/redis client operations as spans.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn interface { redis.Conn // WithContext returns a shallow copy of the connection with // its context changed to ctx. // // To report commands as spans, ctx must contain a transaction or span. WithContext(ctx context.Context) Conn }
Conn is the interface returned by ContextConn.
Conn's Do method reports spans using the bound context.
func Wrap ¶
Wrap wraps conn such that its Do method calls apmredigo.Do with context.Background(). The context can be changed using Conn.WithContext.
If conn implements redis.ConnWithTimeout, then the DoWithTimeout method will similarly call apmredigo.DoWithTimeout.
Send and Receive calls are not currently captured.
Click to show internal directories.
Click to hide internal directories.