Version: v3.3.17+incompatible Latest Latest

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 1 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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

func NewCall(scope tally.Scope, name string) Call

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

type ExecFn

type ExecFn func() error

ExecFn is an executable function that can be instrumented with a Call.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL