Skip to content

Resource merge precedence#1728

Merged
cijothomas merged 12 commits intoopen-telemetry:mainfrom
Austin-Tan:ResourceMergePrecedence
Jan 28, 2021
Merged

Resource merge precedence#1728
cijothomas merged 12 commits intoopen-telemetry:mainfrom
Austin-Tan:ResourceMergePrecedence

Conversation

@Austin-Tan
Copy link
Member

@Austin-Tan Austin-Tan commented Jan 27, 2021

Fixes #1712

Changes

When merging an "other" resource to "this" resource, we previously kept the values from "this" resource in conflicts. Due to recent changes in the OTel specification, this has been reversed to always use the incoming resource's attributes.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@Austin-Tan Austin-Tan requested a review from a team January 27, 2021 03:04
@codecov
Copy link

codecov bot commented Jan 27, 2021

Codecov Report

Merging #1728 (e243982) into main (9196e56) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1728      +/-   ##
==========================================
- Coverage   82.15%   82.13%   -0.02%     
==========================================
  Files         250      250              
  Lines        6774     6774              
==========================================
- Hits         5565     5564       -1     
- Misses       1209     1210       +1     
Impacted Files Coverage Δ
src/OpenTelemetry/Resources/Resource.cs 93.93% <100.00%> (ø)
src/OpenTelemetry/BatchExportProcessor.cs 93.05% <0.00%> (-1.39%) ⬇️

@cijothomas cijothomas closed this Jan 27, 2021
@cijothomas cijothomas reopened this Jan 27, 2021
Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

Left a couple of nits, but LGTM.

@cijothomas cijothomas changed the base branch from master to main January 27, 2021 22:09
@cijothomas cijothomas merged commit 92948e6 into open-telemetry:main Jan 28, 2021
@Austin-Tan Austin-Tan deleted the ResourceMergePrecedence branch January 28, 2021 22:58
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.

Reverse priority for Resource.Merge

3 participants