github.com/go-redis/redis
Redis client for Go.
Wrap V0 client
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/go-redis/redis"
trace "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis"
)
func() (client *redis.Client) {
client = {{ . }}
trace.WrapClient(client)
return
}()
Wrap V7 client
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/go-redis/redis/v7"
trace "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis.v7"
)
func() (client *redis.Client) {
client = {{ . }}
trace.WrapClient(client)
return
}()
Wrap V8 client
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/go-redis/redis/v8"
trace "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis.v8"
)
func() (client *redis.Client) {
client = {{ . }}
trace.WrapClient(client)
return
}()
Wrap V9 client
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
}()