Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call interface { // Exec executes a function and records whether it succeeded or // failed, and the amount of time that it took. Exec(f ExecFn) error }
Call allows tracking the successes, errors, and timing of functions.
func NewCall ¶
NewCall returns a Call that instruments a function using a given scope and a label to name the metrics. The following counters are created excluding {{ and }}: {{name}}+result_type=success {{name}}+result_type=error The following timers are created excluding {{ and }} and replacing . with the scope's separator: {{name}}.latency
Click to show internal directories.
Click to hide internal directories.