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

Update core dependency and remove usage of deprecated APIs #13703

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Aug 29, 2022

Remove usages of:

  • Map.Upsert
  • pcommon.InvalidTraceID
  • pcommon.InvalidSpanID

@@ -345,7 +345,7 @@ func getSummaryMetric(name string, attributes pcommon.Map, ts uint64, sum float6
dp.SetCount(count)
dp.SetSum(sum)
attributes.Range(func(k string, v pcommon.Value) bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

attributes.CopyTo(dp.Attributes())? Can be a separate PR.

Comment on lines +371 to +373
subMap.InsertBool("UIx", false)
subMap.InsertBool("UI4", true)
subMap.InsertBool("flow-alt3", false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/InsertBool/UpsertBool

Can be a separate PR.

Comment on lines 38 to +39
SetValue(value, val)
attrs.Upsert(mapKey, value)
value.CopyTo(attrs.UpsertEmpty(mapKey))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetValue(attrs.UpsertEmpty(mapKey), val)

Should be a separate PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I wanted to keep this PR's scope limited and apply other improvements after

@dmitryax dmitryax changed the title Update core dependency and remove usage of deprecated Map methods Update core dependency and remove usage of deprecated APIs Aug 29, 2022
@dmitryax dmitryax force-pushed the replace-upsert-usages branch 2 times, most recently from 3cbda4a to 5cf7db4 Compare August 29, 2022 23:40
Replace usages of 
- Map.Upsert
- pcommon.InvalidTraceID
- pcommon.InvalidSpanID
@bogdandrutu bogdandrutu merged commit d348696 into open-telemetry:main Aug 30, 2022
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.

None yet

3 participants