Fix metric SetAggregate didn't work#8183
Fix metric SetAggregate didn't work#8183stitchcula wants to merge 1 commit intoinfluxdata:masterfrom
Conversation
|
SetAggregate is a deprecated interface. See Line 128 in 57cd20a It's not used in telegraf any more. Can you share more detail why you need it to work? |
In my fork, I use sync.Pool to reuse metrics, just like: In function
As well, reusing metric can significantly improve the pressure of GC. Maybe I can start a new pull request? |
|
Since SetAggregate() is deprecated and not used anywhere I would rather remove it along with IsAggregate() and metric.aggregate rather than fix it and add tests for it. |
|
@stitchcula any progress on this? |
|
Closing due to no response, feel free to re-open if you are still interested in completing this pr. Thanks! |
Fixes the bug that metric SetAggregate didn't work, when using sync.Pool to reserve metrics from outputs.
Required for all PRs: