Skip to content

Commit

Permalink
fix bug with precision loss for api_request_duration metric
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-malachyn committed Aug 16, 2024
1 parent bfafa2e commit 84ea1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (c *DefaultCollector) EVMAccountInteraction(address string) {
func (c *DefaultCollector) MeasureRequestDuration(start time.Time, method string) {
c.requestDurations.
With(prometheus.Labels{"method": method}).
Observe(float64(time.Since(start)))
Observe(time.Since(start).Seconds())
}

func prefixedName(name string) string {
Expand Down

0 comments on commit 84ea1ff

Please sign in to comment.