Skip to content

imcvampire/opentracing-goredisv8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opentracing-goredisv8

A opentracing module for go-redis v8 and later

How to integrate

    // Init tracer ...
    rdb := redis.NewClient(&redis.Options{
		Addr:     "localhost:6379",
		Password: "", // no password set
		DB:       0,  // use default DB
	})
    h := hook.NewHook(hook.WithTracer(tracer))
    rdb.AddHook(h)

please check detail at examples.