Package apmredigo provides helpers for tracing github.com/gomodule/redigo/redis client operations as spans.
Do calls conn.Do(commandName, args...), and also reports the operation as a span to Elastic APM.
DoWithTimeout calls redis.DoWithTimeout(conn, timeout, commandName, args...), and also reports the operation as a span to Elastic APM.
Conn is the interface returned by ContextConn.
Conn's Do method reports spans using the bound context.
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.