Documentation ¶
Overview ¶
Package spanstat provides a mechanism to measure duration of multiple spans and add them up to a total duration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpanStat ¶
type SpanStat struct {
// contains filtered or unexported fields
}
SpanStat measures the total duration of all time spent in between Start() and Stop() calls.
func (*SpanStat) End ¶
End ends the current span and adds the measured duration to the total cumulated duration, and to the success or failure cumulated duration depending on the given success flag
func (*SpanStat) FailureTotal ¶
FailureTotal returns the total duration of all successful spans measured
func (*SpanStat) SuccessTotal ¶
SuccessTotal returns the total duration of all successful spans measured
Click to show internal directories.
Click to hide internal directories.