prom

package
v0.0.0-...-46fca04 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectFunctionDuration

func CollectFunctionDuration(funcName, module string, skip int) func()

func CollectHttp

func CollectHttp(metrics HTTPMetrics)

func CollectRepoDuration

func CollectRepoDuration(funcName string) func()

func Handler

func Handler() gin.HandlerFunc

func Setup

func Setup()

Types

type HTTPMetrics

type HTTPMetrics struct {
	ClientIP     string
	Method       string
	StatusCode   int
	Route        string
	Duration     float64
	RequestSize  float64
	ResponseSize float64
}

Jump to

Keyboard shortcuts

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