diff --git a/contrib/go-redis/redis.v8/redis.go b/contrib/go-redis/redis.v8/redis.go index ae836c0eae..18722fdde3 100644 --- a/contrib/go-redis/redis.v8/redis.go +++ b/contrib/go-redis/redis.v8/redis.go @@ -27,8 +27,6 @@ type datadogHook struct { *params } -var _ redis.Hook = (*datadogHook)(nil) - // params holds the tracer and a set of parameters which are recorded with every trace. type params struct { host string diff --git a/contrib/go-redis/redis.v8/redis_test.go b/contrib/go-redis/redis.v8/redis_test.go index de45660bfc..b40b306cb5 100644 --- a/contrib/go-redis/redis.v8/redis_test.go +++ b/contrib/go-redis/redis.v8/redis_test.go @@ -23,6 +23,9 @@ import ( const debug = false +// ensure it's a redis.Hook +var _ redis.Hook = (*datadogHook)(nil) + func TestMain(m *testing.M) { _, ok := os.LookupEnv("INTEGRATION") if !ok {