Skip to content
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

[chore] Bytes based batching for profiles #12564

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

iblancasa
Copy link
Contributor

Description

This PR implements serialized bytes based batching for metrics.

Link to tracking issue

#3262

Continuation of #12299 made by @sfc-gh-sili.

Related PRs:

Copy link

codecov bot commented Mar 5, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 33 lines in your changes missing coverage. Please review.

Project coverage is 91.43%. Comparing base (51c3659) to head (27cabe6).

Files with missing lines Patch % Lines
...er/exporterhelper/internal/sizer/profiles_sizer.go 0.00% 14 Missing ⚠️
...r/exporterhelper/xexporterhelper/profiles_batch.go 86.73% 11 Missing and 2 partials ⚠️
pdata/pprofile/pb.go 40.00% 6 Missing ⚠️

❌ Your patch check has failed because the patch coverage (75.00%) 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   #12564      +/-   ##
==========================================
- Coverage   91.54%   91.43%   -0.11%     
==========================================
  Files         479      480       +1     
  Lines       26478    26549      +71     
==========================================
+ Hits        24239    24276      +37     
- Misses       1765     1798      +33     
- Partials      474      475       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mx-psi mx-psi requested a review from sfc-gh-sili March 5, 2025 12:53
@iblancasa iblancasa force-pushed the profiles-sizer branch 2 times, most recently from 8c64251 to ddedc5b Compare March 17, 2025 11:35
@iblancasa iblancasa requested a review from sfc-gh-sili March 17, 2025 11:59
@iblancasa
Copy link
Contributor Author

@dmitryax @bogdandrutu

@iblancasa
Copy link
Contributor Author

Fixed conflicts. Can you review? @dmitryax @bogdandrutu

@iblancasa iblancasa force-pushed the profiles-sizer branch 2 times, most recently from 2c4b214 to 2d45881 Compare March 25, 2025 14:29
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
@iblancasa iblancasa changed the title Bytes based batching for profiles [chore] Bytes based batching for profiles Mar 25, 2025
protoDeltaSizer
}

var _ ProfilesSizer = (*ProfilesBytesSizer)(nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this anonymous variable for?

@@ -135,7 +140,7 @@ func TestMergeSplitProfiles(t *testing.T) {
func TestExtractProfiles(t *testing.T) {
for i := 0; i < 10; i++ {
ld := testdata.GenerateProfiles(10)
extractedProfiles := extractProfiles(ld, i)
extractedProfiles, _ := extractProfiles(ld, i, &sizer.ProfilesCountSizer{})
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add some unit test for the bytes based batching?

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.

2 participants