Documentation ¶
Overview ¶
COPIED from https://github.com/DataDog/dd-trace-go/tree/master/contrib/garyburd/redigo and modified to use opentracing.
TODO: Remove once dd-trace-go switches their contrib packages to use opentracing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialURL ¶
DialURL connects to a Redis server at the given URL using the Redis URI scheme. URLs should follow the draft IANA specification for the scheme (https://www.iana.org/assignments/uri-schemes/prov/redis). The returned redis.Conn is traced.
Types ¶
type Conn ¶
Conn is an implementation of the redis.Conn interface that supports tracing
func (Conn) Do ¶
Do wraps redis.Conn.Do. It sends a command to the Redis server and returns the received reply. In the process it emits a span containing key information about the command sent. When passed a context.Context as the final argument, Do will ensure that any span created inherits from this context. The rest of the arguments are passed through to the Redis server unchanged.
type DialOption ¶
type DialOption func(*dialConfig)
DialOption represents an option that can be passed to Dial.
func WithServiceName ¶
func WithServiceName(name string) DialOption
WithServiceName sets the given service name for the dialled connection.