opentracing

package
v1.77.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, tracer Tracer, operation, method string, opts ...otr.StartSpanOption) (context.Context, otr.Span)

StartSpanFromContext for opentracing.

Types

type Client added in v1.66.0

type Client struct {
	// contains filtered or unexported fields
}

Client for opentracing.

func NewClient added in v1.66.0

func NewClient(tracer Tracer, client client.Client) *Client

NewClient for opentracing.

func (*Client) Close added in v1.66.0

func (c *Client) Close() error

func (*Client) Del added in v1.66.0

func (c *Client) Del(ctx context.Context, keys ...string) *redis.IntCmd

func (*Client) Get added in v1.66.0

func (c *Client) Get(ctx context.Context, key string) *redis.StringCmd

func (*Client) Incr added in v1.75.0

func (c *Client) Incr(ctx context.Context, key string) *redis.IntCmd

func (*Client) Ping added in v1.66.0

func (c *Client) Ping(ctx context.Context) *redis.StatusCmd

func (*Client) Set added in v1.66.0

func (c *Client) Set(ctx context.Context, key string, value any, ttl time.Duration) *redis.StatusCmd

func (*Client) SetNX added in v1.66.0

func (c *Client) SetNX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd

func (*Client) SetXX added in v1.66.0

func (c *Client) SetXX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd

type Tracer

type Tracer otr.Tracer

Tracer for opentracing.

func NewTracer added in v1.64.0

func NewTracer(params TracerParams) (Tracer, error)

NewTracer for opentracing.

type TracerParams added in v1.65.0

type TracerParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *opentracing.Config
	Version   version.Version
}

TracerParams for opentracing.

Jump to

Keyboard shortcuts

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