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

[pkg/stanza/operator/transformer/recombine] Add max_unmatched_batch_size to recombine operator #32168

Conversation

kasia-kujawa
Copy link
Contributor

Description: Add a new max_unmatched_batch_size config parameter to configure the maximum number of consecutive entries that will be combined into a single entry before the match occurs

Link to tracking Issue: #31653

Testing: unit tests, manual tests

Documentation: Add description of the new config option

Changes from #32144 with improvements in tests

@github-actions github-actions bot requested a review from djaglowski April 4, 2024 09:26
@kasia-kujawa kasia-kujawa changed the title Fixed recombine add max unmatched batch size [pkg/stanza/operator/transformer/recombine] Add max_unmatched_batch_size to recombine operator Apr 4, 2024
@kasia-kujawa kasia-kujawa force-pushed the fixed_recombine_add_max_unmatched_batch_size branch 4 times, most recently from 1010656 to 2513520 Compare April 4, 2024 11:22
@kasia-kujawa
Copy link
Contributor Author

I'm still testing this, I'll let you know when it is ready for review.

@kasia-kujawa kasia-kujawa force-pushed the fixed_recombine_add_max_unmatched_batch_size branch 17 times, most recently from 065619f to 5330811 Compare April 9, 2024 13:17
@kasia-kujawa kasia-kujawa marked this pull request as ready for review April 9, 2024 13:44
@kasia-kujawa kasia-kujawa requested a review from a team April 9, 2024 13:44
@kasia-kujawa
Copy link
Contributor Author

It is ready for review 


@djaglowski Random failures of tests were caused by missing initialization of batch.matchDetected (here)
Checking everything again I also found wrong expected value for some tests with IsLastEntry (which sometimes passed because of missing initialization).

The failure of coverage test doesn't look as related to my changes, it looks like as related to codecov/codecov-action#1359

@kasia-kujawa kasia-kujawa force-pushed the fixed_recombine_add_max_unmatched_batch_size branch from 5330811 to 547c1df Compare April 10, 2024 09:49
@kasia-kujawa
Copy link
Contributor Author

@sumo-drosiek please take a look also ;)

@kasia-kujawa kasia-kujawa force-pushed the fixed_recombine_add_max_unmatched_batch_size branch from 547c1df to d065193 Compare April 11, 2024 08:04
…_unmatched_batch_size tests

to isolate the root cause of potential problems
overwrite_with config option is tested in other test cases
… in tests with is_last_entry

where last entry matches regular expression to avoid of time condition in flushing
@kasia-kujawa kasia-kujawa force-pushed the fixed_recombine_add_max_unmatched_batch_size branch 4 times, most recently from ef530d6 to 39e0880 Compare April 11, 2024 09:49
Copy link
Member

@sumo-drosiek sumo-drosiek left a comment

Choose a reason for hiding this comment

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

LGTM. It would be nice to have good technical configuration documentation for this operator, as logic is rather complex 🙈

…ize - initialize value of matchDetected for new batch

fix test cases for max_unmatched_batch_size - some had incorrect expected values
@kasia-kujawa kasia-kujawa force-pushed the fixed_recombine_add_max_unmatched_batch_size branch from 39e0880 to a6bc569 Compare April 11, 2024 12:32
@andrzej-stencel andrzej-stencel merged commit efefc6f into open-telemetry:main Apr 11, 2024
170 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants