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 ¶
NewCollector constructs a new prometheus collector
Click to show internal directories.
Click to hide internal directories.