diff --git a/extra/redisotel/metrics_test.go b/extra/redisotel/metrics_test.go index 0c8535ace..97931881e 100644 --- a/extra/redisotel/metrics_test.go +++ b/extra/redisotel/metrics_test.go @@ -29,7 +29,7 @@ func setupMetrics(conf *config) (*sdkmetric.ManualReader, *redis.Client) { otel.SetMeterProvider(mp) rdb := redis.NewClient(&redis.Options{ - Addr: ":6379", + Addr: ":6666", }) if conf.meter == nil { conf.meter = conf.mp.Meter( @@ -58,7 +58,7 @@ func TestMetrics(t *testing.T) { { Attributes: attribute.NewSet( semconv.DBSystemRedis, - attribute.String("status", "ok"), + attribute.String("status", "error"), ), }, }, @@ -75,7 +75,7 @@ func TestMetrics(t *testing.T) { Attributes: attribute.NewSet( semconv.DBSystemRedis, attribute.String("type", "command"), - attribute.String("status", "ok"), + attribute.String("status", "error"), ), }, }, @@ -114,7 +114,7 @@ func TestCustomAttributes(t *testing.T) { { Attributes: attribute.NewSet( semconv.DBSystemRedis, - attribute.String("status", "ok"), + attribute.String("status", "error"), ), }, }, @@ -131,7 +131,7 @@ func TestCustomAttributes(t *testing.T) { Attributes: attribute.NewSet( semconv.DBSystemRedis, attribute.String("type", "command"), - attribute.String("status", "ok"), + attribute.String("status", "error"), attribute.String("custom", "value"), ), },