Fix typo. Thanks, @groob!
Peter Bourgon
7 years ago
36 | 36 | |
37 | 37 | func (mw instrmw) Count(s string) (n int) { |
38 | 38 | defer func(begin time.Time) { |
39 | lvs := []string{"method", "uppercase"} | |
39 | lvs := []string{"method", "count"} | |
40 | 40 | mw.requestCount.With(lvs...).Add(1) |
41 | 41 | mw.requestLatency.With(lvs...).Observe(time.Since(begin).Seconds()) |
42 | 42 | mw.countResult.Observe(float64(n)) |