Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change max duration to max float64 (v0.47.0) #2

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

tbthanh90
Copy link

Description:

As defaultLatencyHistogramBucketsMs is an array of float64, we need to change maxDurationMs to max of float64
If we keep maxDurationMs as max of Int64, and the duration is more than max of Int64, it might cause panic at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/spanmetricsprocessor/processor.go#L439

Link to tracking Issue:

https://canvadev.atlassian.net/browse/ODC-541

Testing:

Tested in dev cluster

@tbthanh90 tbthanh90 merged commit 8b97c75 into canva-v0.47.0 Apr 1, 2022
@tbthanh90 tbthanh90 deleted the fix-panic-spanmetrics-47 branch April 1, 2022 05:33
tbthanh90 pushed a commit that referenced this pull request Apr 4, 2022
tbthanh90 pushed a commit that referenced this pull request Apr 4, 2022
jaskerv pushed a commit that referenced this pull request Apr 29, 2022
jaskerv pushed a commit that referenced this pull request Apr 29, 2022
jaskerv pushed a commit that referenced this pull request Apr 29, 2022
jaskerv pushed a commit that referenced this pull request Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant