Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRecordedMetric ¶
GetRecordedMetric returns the value that prometheus is reporting. Using this allows for unit tests to check that metrics are properly being calculated and sent. This approach was found to be less awkward than using mocks and is decently performant. See datahopper/bot_metrics/bots_test.go for an example use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.