redis/extra/redisotel
re a337be9066 fix repo 2022-12-12 15:55:49 +03:00
..
README.md fix repo 2022-12-12 15:55:49 +03:00
go.mod fix repo 2022-12-12 15:55:49 +03:00
go.sum chore: release v8.11.5 (release.sh) 2022-03-17 15:14:48 +02:00
redisotel.go fix repo 2022-12-12 15:55:49 +03:00
redisotel_test.go fix repo 2022-12-12 15:55:49 +03:00

README.md

OpenTelemetry instrumentation for go-redis

Installation

go get github.com/go-redis/redis/extra/redisotel/v8

Usage

Tracing is enabled by adding a hook:

import (
    "git.internal/re/redis/v8"
    "github.com/go-redis/redis/extra/redisotel"
)

rdb := rdb.NewClient(&rdb.Options{...})

rdb.AddHook(redisotel.NewTracingHook())

See example and documentation for more details.