exp - ActiveState ActiveGo 1.8

Package exp

import "github.com/rcrowley/go-metrics/exp"

Overview ▾

Hook go-metrics into expvar on any /debug/metrics request, load all vars from the registry into expvar, and execute regular expvar handler

func Exp

func Exp(r metrics.Registry)

Exp will register an expvar powered metrics handler with http.DefaultServeMux on "/debug/vars"

func ExpHandler

func ExpHandler(r metrics.Registry) http.Handler

ExpHandler will return an expvar powered metrics handler.