instutil

package
v8.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketScale deprecated

func BucketScale(factor float64, values ...float64) []float64

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func Counter deprecated

func Counter(ctx context.Context, name string) (prometheus.Counter, bool)

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func CounterVec deprecated

func CounterVec(ctx context.Context, name string) (*prometheus.CounterVec, bool)

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func Gauge deprecated

func Gauge(ctx context.Context, name string) (prometheus.Gauge, bool)

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func GaugeVec deprecated

func GaugeVec(ctx context.Context, name string) (*prometheus.GaugeVec, bool)

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func Histogram deprecated

func Histogram(ctx context.Context, name string) (prometheus.Histogram, bool)

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func InitDefaultTracer added in v8.2.0

func InitDefaultTracer()

func InitHTTPTracing added in v8.2.0

func InitHTTPTracing()

func NewCounter deprecated

func NewCounter(ctx context.Context, name string) context.Context

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func NewCounterVec deprecated

func NewCounterVec(ctx context.Context, name string, labels ...string) context.Context

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func NewGauge deprecated

func NewGauge(ctx context.Context, name string) context.Context

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func NewGaugeVec deprecated

func NewGaugeVec(ctx context.Context, name string, labels ...string) context.Context

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func NewHistogram deprecated

func NewHistogram(ctx context.Context, name string, buckets ...float64) context.Context

Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.

func NewTransitionCollector

func NewTransitionCollector(ctx context.Context, name string) context.Context

Types

type Transition

type Transition struct {
	Name     string
	From, To string
	Fields   logrus.Fields
}

type TransitionCollector

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

func GetTransitionCollector

func GetTransitionCollector(ctx context.Context, name string) *TransitionCollector

func (*TransitionCollector) Finish

func (c *TransitionCollector) Finish() []Transition

func (*TransitionCollector) Observe

func (c *TransitionCollector) Observe(name string, state string, fields logrus.Fields)

Jump to

Keyboard shortcuts

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