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

[exporter/instana] Remove redundant Sort call making exporter mutating #16505

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Nov 28, 2022

The Sort call is redundant because the range function is applied on a map so there is no reason to preserve order. The call unnecessarily mutates the original data which can lead to subtle bugs similar to #16499 given that the exporter marked as not mutating

The Sort call is redundant because the range function is applied on a map so there is no reason to preserve order. The call unnecessarily mutates the original data which can lead to subtle bugs
@dmitryax dmitryax force-pushed the remove-instana-sort branch from 5864cb4 to 32f9194 Compare November 28, 2022 21:54
@bogdandrutu bogdandrutu merged commit 600c905 into open-telemetry:main Nov 28, 2022
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
open-telemetry#16505)

The Sort call is redundant because the range function is applied on a map so there is no reason to preserve order. The call unnecessarily mutates the original data which can lead to subtle bugs
@dmitryax dmitryax deleted the remove-instana-sort branch December 10, 2022 07:33
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants