-
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?
Conversation
58245f3
to
f5c3129
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (68.29%) 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.43% 91.63% +0.20%
==========================================
Files 487 499 +12
Lines 26808 27452 +644
==========================================
+ Hits 24511 25155 +644
- Misses 1814 1815 +1
+ Partials 483 482 -1 ☔ 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