Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeRequest ¶
func TimeRequest(ctx context.Context, method string, col instrument.Collector, toStatusCode func(error) string, f func(context.Context) error) error
TimeRequest reports how much time was spent on the given function `f`.
It is a thinner version of weaveworks/common/instrument.CollectedRequest that doesn't emit spans.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.