prometheus

package
v0.0.0-...-3cc3ff2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StartTimeCtx context time value
	StartTimeCtx = CtxKey("start-time")
)

Functions

func New

func New(addr string) semaphore.Middleware

New constructs a new prometheus middleware instance

Types

type Collector

type Collector interface {
	Registry() *prometheus.Registry
	BeforeDo(next flow.BeforeManager) flow.BeforeManager
	AfterDo(next flow.AfterManager) flow.AfterManager
	BeforeNode(next flow.BeforeNode) flow.BeforeNode
	AfterNode(next flow.AfterNode) flow.AfterNode
	BeforeRollback(next flow.BeforeManager) flow.BeforeManager
	AfterRollback(next flow.AfterManager) flow.AfterManager
}

Collector represents a middleware collector

func NewCollector

func NewCollector() (Collector, error)

NewCollector constructs a new prometheus collector

type CtxKey

type CtxKey string

CtxKey context key type

Jump to

Keyboard shortcuts

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