metricsmartini

package
v0.0.0-...-2b7dcb4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseTimeReporter

func ResponseTimeReporter() martini.Handler

ResponseTimeReporter reports timing metrics using metrics package

Usage:

  r := martini.NewRouter()
  r.Get("/boom/error",
	ResponseTimeReporter(),
	func(req *http.Request) {
       ...
	})

It is important to insert it after routing, not a a generic martini middleware!

Types

This section is empty.

Jump to

Keyboard shortcuts

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