Skip to content

Commit

Permalink
Change max duration to max float64 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanh Tran authored Apr 1, 2022
1 parent 649e9de commit 8b97c75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions processor/spanmetricsprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ const (
)

var (
maxDuration = time.Duration(math.MaxInt64)
maxDurationMs = durationToMillis(maxDuration)
maxDurationMs = math.MaxFloat64

defaultLatencyHistogramBucketsMs = []float64{
2, 4, 6, 8, 10, 50, 100, 200, 400, 800, 1000, 1400, 2000, 5000, 10_000, 15_000, maxDurationMs,
Expand Down

0 comments on commit 8b97c75

Please sign in to comment.