redis/extra/redisotel
Vladimir Mihailenco 0b7ced8baf chore: release v9.0.0-rc.2 (release.sh) 2022-11-26 14:20:33 +02:00
..
README.md chore: improve instrumentation example 2022-10-12 17:18:55 +03:00
config.go chore: add more metrics to redisotel 2022-11-17 16:24:16 +02:00
go.mod chore: release v9.0.0-rc.2 (release.sh) 2022-11-26 14:20:33 +02:00
go.sum chore: release v9.0.0-rc.2 (release.sh) 2022-11-26 14:20:33 +02:00
metrics.go chore: fix metrics in redisotel 2022-11-18 15:32:17 +02:00
redisotel_test.go feat: add OpenTelemetry metrics instrumentation 2022-10-12 11:09:41 +03:00
tracing.go chore: cleanup 2022-11-21 11:31:38 +02:00

README.md

OpenTelemetry instrumentation for go-redis

Installation

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

Usage

Tracing is enabled by adding a hook:

import (
    "github.com/go-redis/redis/v9"
    "github.com/go-redis/redis/extra/redisotel/v9"
)

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

rdb.AddHook(redisotel.NewTracingHook())

See example and Monitoring Go Redis Performance and Errors for details.