cloud_native

package
v0.0.0-...-b015d54 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTracer

func LoadTracer(addr, service string, dur time.Duration, secure bool) (
	closeTracer func(), err error)

func NewPrometheusMonitor

func NewPrometheusMonitor(namespace string) gin.HandlerFunc

demo

func PromGauge

func PromGauge(name string) gin.HandlerFunc

func PromHandler

func PromHandler() gin.HandlerFunc

func PromInstrument

func PromInstrument(name string) gin.HandlerFunc

InstrumentHandler instruments any HTTP handler for the request total and request duration metric

func PrometheusFunc

func PrometheusFunc(ctx *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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