redis

package
v0.0.0-...-0eaf191 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPort

func WithPort(port string) redisOptFunc

Configure Redis port

func WithServer

func WithServer(server string) redisOptFunc

Configure Redis server

func WithTracerName

func WithTracerName(tracerName string) redisOptFunc

Configure tracer name

Types

type RedisEnricher

type RedisEnricher struct {
	Opts *redisOpts
}

func NewRedisEnricher

func NewRedisEnricher(
	optFuncs ...redisOptFunc,
) *RedisEnricher

Create a Redis database instance

func (*RedisEnricher) CreateSpan

func (e *RedisEnricher) CreateSpan(
	ctx context.Context,
	parentSpan trace.Span,
	operation string,
	key string,
) (
	context.Context,
	trace.Span,
)

Jump to

Keyboard shortcuts

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