Example #1
0
func logGaugeMetric(m *metrics.DogStatsD, name, funcName string, value float64) {
	if err := m.Gauge(
		name,  // metric name
		value, // count
		// using funcName: for consistency with callCount
		[]string{"funcName:" + funcName},
		1.0, // rate
	); err != nil {
		// TODO(cihangir) should we log/return error?
	}
}