Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter interface { Inc() Add(incr int) }
Counter is a monotonically increasing counter.
type LatencyHistogram ¶
type LatencyHistogram interface {
Timer() Timer
}
func NewLatencyHistogram ¶
func NewLatencyHistogram(name string, description string, labels map[string]any) LatencyHistogram
type PrometheusMetrics ¶
func Start ¶
func Start(bindAddress string) (*PrometheusMetrics, error)
func (*PrometheusMetrics) Close ¶
func (p *PrometheusMetrics) Close() error
func (*PrometheusMetrics) Port ¶
func (p *PrometheusMetrics) Port() int
type Unit ¶
type Unit string
Unit has been deprecated in otel: https://github.com/open-telemetry/opentelemetry-go/pull/3776
type UpDownCounter ¶
UpDownCounter is a counter that is incremented and decremented to report the current state.
func NewUpDownCounter ¶
Click to show internal directories.
Click to hide internal directories.