Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: redis/go-redis
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fda6b073d7b3faab50ac237f911bda211d053aaa
Choose a base ref
..
head repository: redis/go-redis
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f7d3f48e2e7c006c5e7436b607053a12745e0c9b
Choose a head ref
Showing with 5 additions and 5 deletions.
  1. +5 −5 extra/redisotel/metrics_test.go
10 changes: 5 additions & 5 deletions extra/redisotel/metrics_test.go
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ func setupMetrics(conf *config) (*sdkmetric.ManualReader, *redis.Client) {
otel.SetMeterProvider(mp)

rdb := redis.NewClient(&redis.Options{
Addr: ":6666",
Addr: ":6379",
})
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", "error"),
attribute.String("status", "ok"),
),
},
},
@@ -75,7 +75,7 @@ func TestMetrics(t *testing.T) {
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("type", "command"),
attribute.String("status", "error"),
attribute.String("status", "ok"),
),
},
},
@@ -114,7 +114,7 @@ func TestCustomAttributes(t *testing.T) {
{
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("status", "error"),
attribute.String("status", "ok"),
),
},
},
@@ -131,7 +131,7 @@ func TestCustomAttributes(t *testing.T) {
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("type", "command"),
attribute.String("status", "error"),
attribute.String("status", "ok"),
attribute.String("custom", "value"),
),
},