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

[receiver/signalfx] Replace usages of Insert to Upsert on empty maps #13918

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Sep 6, 2022

signalfx receiver doesn't create resource attributes from sfx datapoints or events. So it's save to use Map.Upsert instead of Map.Insert on empty maps

Related issue: open-telemetry/opentelemetry-collector#5998

signalfx receiver doesn't create resource attributes from sfx datapoint or event conversion. So it's save to use Map.Upsert instead of Map.Insert
@dmitryax dmitryax requested review from a team and Aneurysm9 September 6, 2022 23:20
@dmitryax dmitryax added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 6, 2022
@dmitryax dmitryax merged commit 2db61c0 into open-telemetry:main Sep 7, 2022
@dmitryax dmitryax deleted the signalfx-receiver-insert branch September 8, 2022 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants