Documentation ¶
Index ¶
- func StartSpanFromContext(ctx context.Context, tracer Tracer, operation, method string, ...) (context.Context, otr.Span)
- type Client
- func (c *Client) Close() error
- func (c *Client) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (c *Client) Get(ctx context.Context, key string) *redis.StringCmd
- func (c *Client) Incr(ctx context.Context, key string) *redis.IntCmd
- func (c *Client) Ping(ctx context.Context) *redis.StatusCmd
- func (c *Client) Set(ctx context.Context, key string, value any, ttl time.Duration) *redis.StatusCmd
- func (c *Client) SetNX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd
- func (c *Client) SetXX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd
- type Tracer
- type TracerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v1.66.0
type Client struct {
// contains filtered or unexported fields
}
Client for opentracing.
type 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.
Click to show internal directories.
Click to hide internal directories.