Go-Redis Instrumentation

The Redis instrumentation currently reports all queries in an unsanitized fashion. This means that any PII data those queries contain, like email addresses and passwords, is sent to AppSignal. This will be configurable in a future version of the Redis instrumentation.


To instrument your Go-Redis code, you'll need to import the OpenTelemetry official instrumentation package:

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

After initializing your Redis client, instrument tracing and metrics as in the example below.

rdb := redis.NewClient(&redis.Options{ Addr: "", }) if err := redisotel.InstrumentTracing(rdb); err != nil { panic(err) }