monitoring

package
v0.0.0-...-f616806 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSummaryVec

func BuildSummaryVec(serviceName, metricName, metricHelp string) *prometheus.SummaryVec

func Monitor

func Monitor(serviceName, routeName, signature string) func(http.Handler) http.Handler

func MonitoringMiddleware

func MonitoringMiddleware(serviceName, routeName, signature string, h http.Handler) http.Handler

func Trace

func Trace(opName string) func(http.Handler) http.Handler

func TracingMiddleware

func TracingMiddleware(opName string, h http.Handler) http.Handler

func WithMonitoring

func WithMonitoring(next http.Handler, summary *prometheus.SummaryVec) http.Handler

WithMonitoring optionally adds a middleware that stores request duration and response size into the supplied summaryVec

Types

This section is empty.

Jump to

Keyboard shortcuts

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