-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Batch Processor: Log Support #1723
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1723 +/- ##
=======================================
Coverage 92.37% 92.38%
=======================================
Files 258 258
Lines 18192 18239 +47
=======================================
+ Hits 16805 16850 +45
- Misses 975 976 +1
- Partials 412 413 +1
Continue to review full report at Codecov.
|
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.
Can we also enable batcher in the e2e log tests where relevant (if the similar trace tests use the batcher)?
} | ||
|
||
func (bm *batchLogs) size() int { | ||
return bm.logData.ResourceLogs().Len() |
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.
What is size() supposed to return?
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.
Based on the metrics batcher, the size in bytes of the internal data representation of logs. I added a helper method to pdata to derive it without the batch processor having to convert to internal.
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.
Do we have batching by size in bytes? I thought we only support batching by the number of items. Can you point me to the code which does byte-based batching? I don't see anything mentioned in the config of the batcher.
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.
It is just used for telemetry at the detailed level to record how many bytes the batches are.
I'll look into this. The trace correctness test uses batch processor. |
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.
LGTM
@keitwb Please resolve the conflict. |
This mimics the same logic as metrics for logs in the batchprocessor.
Yeah it is probably best to add e2e tests for logging (beyond the existing perf test) with another PR/issue as it looks quite involved. |
This mimics the same logic as metrics for logs in the batchprocessor.