-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Introduce pprofile.PutAttribute helper #12798
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
Introduce pprofile.PutAttribute helper #12798
Conversation
58245f3
to
f5c3129
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (70.58%) 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 #12798 +/- ##
==========================================
- Coverage 91.61% 91.58% -0.04%
==========================================
Files 505 505
Lines 28424 28475 +51
==========================================
+ Hits 26042 26078 +36
- Misses 1873 1883 +10
- Partials 509 514 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Could you describe that a bit more? (maybe in the changelog?) I find the motivation for this change hard to figure out. |
@bogdandrutu @dmitryax Can you please take a look? |
@bogdandrutu Are there any further concerns or can you merge this, please? |
@bogdandrutu @dmitryax I will merge this by EOW if you do not object before then |
749f997
Description
This introduces the
pprofile.PutAttribute()
helper method so profile extensions can modify attributes.It replaces the yet unused
pprofile.AddAttribute()
function, asAdd
doesn't resonate well with thepcommon.Map
Put*
functions.Additionally, the
PutAttributes()
helper takes into account the map k/v nature of attributes, whileAddAttributes()
didn't do this.Testing
See also #12390