ppgoredisv7

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ppgoredisv7 instruments the go-redis/redis/v7 package (https://github.com/go-redis/redis).

This package instruments the go-redis/v7 calls. Use the NewHook as the redis.Hook.

rc = redis.NewClient(redisOpts)
rc.AddHook(ppgoredisv7.NewHook(redisOpts))

It is necessary to pass the context containing the pinpoint.Tracer to redis.Client.

rc = rc.WithContext(pinpoint.NewContext(context.Background(), tracer))
rc.Pipeline()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterHook

func NewClusterHook(opts *redis.ClusterOptions) redis.Hook

NewClusterHook creates a redis.Hook to instrument redis cluster calls.

func NewHook

func NewHook(opts *redis.Options) redis.Hook

NewHook creates a redis.Hook to instrument redis calls.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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