dd-trace-go-redis

module
v0.0.0-...-50dcf71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2021 License: Apache-2.0, BSD-3-Clause, MIT, + 1 more

README

dd-trace-go-redis

DEPRECATED

dd-trace-go now supports go-redis/redis/v8 since v1.28.0.

dd-trace-go/contrib/go-redis/redis.v8

ci Go Report Card codecov

DataDog tracer for go-redis/redis v7 and v8

Motivation

dd-trace-go does not support go-redis/redis v7 and v8.

This package mimics dd-trace-go/contrib/go-redis/redis, but has been modified to support go-redis' Hook API.

Thanks

Many codes were stolen from dd-trace-go.

Install

go get github.com/johejo/dd-trace-go-redis

Usage

See the dd-trace-go documentation for details. https://godoc.org/gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis

And replace your import (import "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis") with:

for go-redis/redis/v7

"github.com/johejo/dd-trace-go-redis/v7"

for go-redis/redis/v8

"github.com/johejo/dd-trace-go-redis/v8"

Directories

Path Synopsis
internal
globalconfig
Package globalconfig stores configuration which applies globally to both the tracer and integrations.
Package globalconfig stores configuration which applies globally to both the tracer and integrations.
Package redis provides tracing functions for tracing the go-redis/redis package (https://github.com/go-redis/redis).
Package redis provides tracing functions for tracing the go-redis/redis package (https://github.com/go-redis/redis).
Package redis provides tracing functions for tracing the go-redis/redis package (https://github.com/go-redis/redis).
Package redis provides tracing functions for tracing the go-redis/redis package (https://github.com/go-redis/redis).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL