Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit d901a77

Browse files
committed
Document OpenCensusHook
1 parent 0644c40 commit d901a77

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
# go-redis extensions
22

3-
## Tracing using OpenTelemetryHook
3+
## Tracing using OpenTelemetry
44

55
For more details see [documentation](https://redis.uptrace.dev/tracing/):
66

77
```go
8+
import "github.com/go-redis/redisext"
9+
10+
rdb := redis.NewClient(&redis.Options{...})
11+
rdb.AddHook(redisext.OpenTelemetryHook{})
12+
```
13+
14+
## Tracing using OpenCensus
15+
16+
Installation:
17+
18+
```bash
19+
go get github.com/go-redis/redisext/rediscensus
20+
```
21+
22+
Setup outline:
23+
24+
```
25+
import "github.com/go-redis/redisext/rediscensus"
26+
827
rdb := redis.NewClient(&redis.Options{...})
9-
rdb.AddHook(&redisext.OpenTelemetryHook{})
28+
rdb.AddHook(rediscensus.OpenCensusHook{})
1029
```

0 commit comments

Comments
 (0)