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
Add the ability to batch metrics as a processor. #1060
Add the ability to batch metrics as a processor. #1060
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1060 +/- ##
==========================================
+ Coverage 86.33% 86.41% +0.07%
==========================================
Files 199 199
Lines 14072 14153 +81
==========================================
+ Hits 12149 12230 +81
- Misses 1461 1463 +2
+ Partials 462 460 -2
Continue to review full report at Codecov.
|
// | ||
// Batches are sent out with any of the following conditions: | ||
// - batch size reaches cfg.SendBatchSize | ||
// - cfg.Timeout is elapsed since the timestamp when the previous batch was sent out. | ||
// - cfg.Timeout is elapsed since the timestamp when the previous batchTraces was sent out. |
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.
s/batchTraces/batch?
} | ||
|
||
func (bp *batchMetricProcessor) GetCapabilities() component.ProcessorCapabilities { | ||
return component.ProcessorCapabilities{MutatesConsumedData: true} |
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.
Please add an issue to discuss if this is needed. Not sure if we "mutate" data.
@ccaraman please also ensure that the diff coverage is over the limit :) |
* Add batching for metrics * Update documentation * Improve test coverage
…#1060) * Move `api/label` to `label` * Move `api/kv` package contents into `label` package * Unify label package name * Move `api/internal/rawhelpers.go` to `internal` * Propagate replacing `api/kv` with `label` pkg * golint * Fix over-aggressive change * Update Changelog
…y#1060) Bumps [boto3](https://github.com/boto/boto3) from 1.20.25 to 1.20.26. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](boto/boto3@1.20.25...1.20.26) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Description: Add the ability to batch metrics as a processor.
Link to tracking Issue: N/A
Testing: Added test for batching of metrics
Documentation: Updated the docs.