-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Expose msg length info to metadata #14688
Expose msg length info to metadata #14688
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #14688 +/- ##
============================================
+ Coverage 61.75% 64.00% +2.25%
- Complexity 207 1608 +1401
============================================
Files 2436 2706 +270
Lines 133233 149161 +15928
Branches 20636 22861 +2225
============================================
+ Hits 82274 95472 +13198
- Misses 44911 46689 +1778
- Partials 6048 7000 +952
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment
@@ -30,6 +30,7 @@ public class StreamDataDecoderImpl implements StreamDataDecoder { | |||
public static final String KEY = "__key"; | |||
public static final String HEADER_KEY_PREFIX = "__header$"; | |||
public static final String METADATA_KEY_PREFIX = "__metadata$"; | |||
public static final String RECORD_SERIALIZED_VALUE_SIZE_KEY = "recordSerializedValueSize"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest naming it METADATA_KEY_PREFIX + "streamMessageSize"
to be more specific. We can have it with prefix to avoid always concating them
* Expose msg length info to metadata * Address comment
feature
Stream message length is an important metadata information as its timestamp. Expose this info to metadata to make it easier extracted through transform functions.