MCPcopy Create free account
hub / github.com/AdRoll/baker / Duration

Method Duration

metrics_client.go:51–51  ·  view source on GitHub ↗

Duration adds a duration to a metric of type histogram. A histogram samples observations and counts them in different 'buckets'. Duration is basically an histogram but allows to sample values of type time.Duration.

(name string, value time.Duration)

Source from the content-addressed store, hash-verified

49 // samples observations and counts them in different 'buckets'. Duration
50 // is basically an histogram but allows to sample values of type time.Duration.
51 Duration(name string, value time.Duration)
52
53 // DurationWithTags adds a duration to an histogram and associates that
54 // duration with a set of tags.

Callers 12

dumpNowMethod · 0.65
TestClientMetricsFunction · 0.65
doRequestMethod · 0.65
evaluateURLsMethod · 0.65
parseConfMethod · 0.65
randomLogLineFunction · 0.65
pollQueueMethod · 0.65
ProcessRecordsMethod · 0.65
RecordGetRecordsTimeMethod · 0.65
RunMethod · 0.65
StatsMethod · 0.65

Implementers 4

NopMetricsnop_metrics.go
Clientmetrics/datadog/client.go
MockMetricstestutil/mock_metrics.go
fooBarMetricsexamples/metrics/foobar.go

Calls

no outgoing calls

Tested by 2

TestClientMetricsFunction · 0.52
randomLogLineFunction · 0.52