-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
Introduce pprofile.PutAttribute helper #12798
Conversation
58245f3
to
f5c3129
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch check 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.69% 91.65% -0.04%
==========================================
Files 501 501
Lines 27506 27557 +51
==========================================
+ Hits 25221 25257 +36
- Misses 1806 1816 +10
- Partials 479 484 +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? |
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