cacheotel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExponentialBuckets

func ExponentialBuckets(start, factor float64, count int) []float64

func InstrumentClient

func InstrumentClient(c rueidis.Client, opts ...Option) (rueidis.Client, error)

func InstrumentMetrics

func InstrumentMetrics(c *cache.Cache, opts ...MetricsOption) error

Types

type MetricsOption

type MetricsOption interface {
	// contains filtered or unexported methods
}

func WithExplicitBucketBoundaries

func WithExplicitBucketBoundaries(boundaries []float64) MetricsOption

func WithMeterProvider

func WithMeterProvider(mp metric.MeterProvider) MetricsOption

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAtributes

func WithAtributes(atts ...attribute.KeyValue) Option

func WithDBSystem

func WithDBSystem(system string) Option

Jump to

Keyboard shortcuts

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