contrib/redis/go-redis.v9
Those integration are enabled by having the
following import
in the project’s orchestrion.tool.go
file:
import (
_ "github.com/DataDog/orchestrion"
_ "gopkg.in/DataDog/dd-trace-go.v1/contrib/redis/go-redis.v9" // integration
//...
)
Redis client for Go.
NewClient
One of
- Call to
redis.NewClient
- Call to
redis.NewFailoverClient
Replace the expression using the template:
// Using the following synthetic imports:
import (
redis "github.com/redis/go-redis/v9"
trace "gopkg.in/DataDog/dd-trace-go.v1/contrib/redis/go-redis.v9"
)
func() (client *redis.Client) {
client = {{ . }}
trace.WrapClient(client)
return
}()