dummy

package
v0.0.0-...-9cf347b Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct{}

Metrics is a dummy implementation of metrics.Metrics. It returns safe handlers which won't panic, but they doesn't do anything.

func New

func New() *Metrics

New returns a new instance of Metrics.

func (*Metrics) Count

func (*Metrics) Count(key string) metrics.Count

Count implements metrics.Metrics.

func (*Metrics) CountFields

func (*Metrics) CountFields(key string, additionalFields field.AbstractFields) metrics.Count

CountFields implements metrics.Metrics.

func (*Metrics) Flush

func (*Metrics) Flush()

Flush implements metrics.Metrics.

func (*Metrics) Gauge

func (*Metrics) Gauge(key string) metrics.Gauge

Gauge implements metrics.Metrics.

func (*Metrics) GaugeFields

func (*Metrics) GaugeFields(key string, additionalFields field.AbstractFields) metrics.Gauge

GaugeFields implements metrics.Metrics.

func (*Metrics) IntGauge

func (*Metrics) IntGauge(key string) metrics.IntGauge

IntGauge implements metrics.Metrics.

func (*Metrics) IntGaugeFields

func (*Metrics) IntGaugeFields(key string, additionalFields field.AbstractFields) metrics.IntGauge

IntGaugeFields implements metrics.Metrics.

func (*Metrics) WithContextFields

func (*Metrics) WithContextFields(allFields *field.FieldsChain, newFieldsCount int) belt.Tool

WithContextFields implements metrics.Metrics.

func (*Metrics) WithTraceIDs

func (*Metrics) WithTraceIDs(traceIDs belt.TraceIDs, newTraceIDsCount int) belt.Tool

WithTraceIDs implements metrics.Metrics.

Jump to

Keyboard shortcuts

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