redis/extra/redisotel
Vladimir Mihailenco 3a722be811 fix: fix tests 2022-06-04 15:25:01 +03:00
..
README.md extra/redisotel: add readme and example 2021-04-18 14:49:28 +03:00
go.mod chore: release v8.11.5 (release.sh) 2022-03-17 15:14:48 +02:00
go.sum
redisotel.go feat: add support for passing extra attributes added to spans 2022-02-22 14:15:28 +01:00
redisotel_test.go fix: fix tests 2022-06-04 15:25:01 +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 (
    "github.com/go-redis/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.