@@ -29,7 +29,7 @@ func setupMetrics(conf *config) (*sdkmetric.ManualReader, *redis.Client) {
29
29
otel .SetMeterProvider (mp )
30
30
31
31
rdb := redis .NewClient (& redis.Options {
32
- Addr : ":6379 " ,
32
+ Addr : ":6666 " ,
33
33
})
34
34
if conf .meter == nil {
35
35
conf .meter = conf .mp .Meter (
@@ -58,7 +58,7 @@ func TestMetrics(t *testing.T) {
58
58
{
59
59
Attributes : attribute .NewSet (
60
60
semconv .DBSystemRedis ,
61
- attribute .String ("status" , "ok " ),
61
+ attribute .String ("status" , "error " ),
62
62
),
63
63
},
64
64
},
@@ -75,7 +75,7 @@ func TestMetrics(t *testing.T) {
75
75
Attributes : attribute .NewSet (
76
76
semconv .DBSystemRedis ,
77
77
attribute .String ("type" , "command" ),
78
- attribute .String ("status" , "ok " ),
78
+ attribute .String ("status" , "error " ),
79
79
),
80
80
},
81
81
},
@@ -114,7 +114,7 @@ func TestCustomAttributes(t *testing.T) {
114
114
{
115
115
Attributes : attribute .NewSet (
116
116
semconv .DBSystemRedis ,
117
- attribute .String ("status" , "ok " ),
117
+ attribute .String ("status" , "error " ),
118
118
),
119
119
},
120
120
},
@@ -131,7 +131,7 @@ func TestCustomAttributes(t *testing.T) {
131
131
Attributes : attribute .NewSet (
132
132
semconv .DBSystemRedis ,
133
133
attribute .String ("type" , "command" ),
134
- attribute .String ("status" , "ok " ),
134
+ attribute .String ("status" , "error " ),
135
135
attribute .String ("custom" , "value" ),
136
136
),
137
137
},
0 commit comments