Categorygithub.com/go-redis/redis/extra/redisotel/v8
modulepackage
8.11.5
Repository: https://github.com/go-redis/redis.git
Documentation: pkg.go.dev

# README

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.

# Functions

No description provided by the author
WithAttributes specifies additional attributes to be added to the span.
WithTracerProvider specifies a tracer provider to use for creating a tracer.

# Structs

No description provided by the author

# Interfaces

Option specifies instrumentation configuration options.