From 96d5ce53e1a95d6d6ad6d81905a95486e1b7a02e Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Fri, 21 Mar 2025 22:56:25 +0800 Subject: [PATCH 1/6] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 335d32dad..77fd1175e 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,24 @@ func ExampleClient() *redis.Client { ``` +### Instrument with OpenTelementry + +```go +import ( + "github.com/redis/go-redis/v9" + "github.com/redis/go-redis/extra/redisotel/v9" + "errors" +) + +func main() { + ... + rdb := redis.NewClient(&redis.Options{...}) + + if err := errors.Join(redisotel.InstrumentTracing(rdb), redisotel.InstrumentMetrics(rdb)); err != nil { + log.Fatal(err) + } +``` + ### Advanced Configuration From 4687c4af6f8467909c5df57048cef24108d3b94d Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Mon, 24 Mar 2025 22:27:02 +0800 Subject: [PATCH 2/6] lint --- .github/wordlist.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/wordlist.txt b/.github/wordlist.txt index 1fc34f733..56c760975 100644 --- a/.github/wordlist.txt +++ b/.github/wordlist.txt @@ -30,6 +30,7 @@ MSSQL namespace NoSQL ORM +OpenTelemetry Packagist PhpRedis pipelining @@ -64,4 +65,4 @@ RedisGears RedisTimeseries RediSearch RawResult -RawVal \ No newline at end of file +RawVal From bacb026243a4c61b3067e9ef8426928b98be771a Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Mon, 24 Mar 2025 22:29:00 +0800 Subject: [PATCH 3/6] nit --- .github/wordlist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/wordlist.txt b/.github/wordlist.txt index 56c760975..87c605da8 100644 --- a/.github/wordlist.txt +++ b/.github/wordlist.txt @@ -65,4 +65,3 @@ RedisGears RedisTimeseries RediSearch RawResult -RawVal From 32c61e72fa951c5825d3d56fb18fa5594ab193ee Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Mon, 24 Mar 2025 22:29:32 +0800 Subject: [PATCH 4/6] last --- .github/wordlist.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/wordlist.txt b/.github/wordlist.txt index 87c605da8..56c760975 100644 --- a/.github/wordlist.txt +++ b/.github/wordlist.txt @@ -65,3 +65,4 @@ RedisGears RedisTimeseries RediSearch RawResult +RawVal From 3457cf6fa4a4b695f8f1e6021e06c00361ac5b44 Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Mon, 24 Mar 2025 22:32:55 +0800 Subject: [PATCH 5/6] fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 77fd1175e..fc64e8dd9 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ func ExampleClient() *redis.Client { ``` -### Instrument with OpenTelementry +### Instrument with OpenTelemetry ```go import ( From ffaaabb1f2846cae10c8476341d3f088d337e6e0 Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Mon, 24 Mar 2025 22:34:27 +0800 Subject: [PATCH 6/6] fix --- .github/wordlist.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/wordlist.txt b/.github/wordlist.txt index 56c760975..578616b9d 100644 --- a/.github/wordlist.txt +++ b/.github/wordlist.txt @@ -29,8 +29,8 @@ Lua MSSQL namespace NoSQL -ORM OpenTelemetry +ORM Packagist PhpRedis pipelining @@ -65,4 +65,4 @@ RedisGears RedisTimeseries RediSearch RawResult -RawVal +RawVal \ No newline at end of file