Exemple #1
0
func (l *LibratoOutlet) convert() {
	for bucket := range l.inbox {
		for _, m := range bucket.Metrics() {
			l.conversions <- m
		}
		fmt.Printf("measure.bucket.conversion.delay=%d\n",
			bucket.Id.Delay(time.Now()))
	}
}
Exemple #2
0
func (l *LibratoOutlet) convert() {
	for bucket := range l.inbox {
		for _, m := range bucket.Metrics() {
			l.conversions <- m
		}
		delay := bucket.Id.Delay(time.Now())
		l.Mchan.Measure("outlet.delay", float64(delay))
	}
}