Introduce switchDictionary methods for profiles#14075
Merged
Merged
Conversation
Member
Author
|
I know this is a quite large PR, but there's a lot of repetition in there (which also can't really be reduced). |
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (68.15%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #14075 +/- ##
==========================================
- Coverage 92.25% 92.12% -0.14%
==========================================
Files 658 663 +5
Lines 41186 41387 +201
==========================================
+ Hits 37998 38129 +131
- Misses 2182 2218 +36
- Partials 1006 1040 +34 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
iblancasa
approved these changes
Nov 6, 2025
mx-psi
approved these changes
Nov 19, 2025
Merged
via the queue into
open-telemetry:main
with commit Nov 19, 2025
116c181
78 of 81 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the next step towards #13106
It introduces private
switchDictionarymethods for all profile structs, so their base dictionary can be switched, which is a requirement (and maybe the biggest bit) of merging profiles.Right now, the private method isn't called yet, because this PR is already very big, and I believe introducing
MergeToshould be in another PR.But the gist is that to merge profiles together, we need to change the base dictionary for the profiles that are being moved before we can merge the two slices of resource profiles into one.