-
Enhancement
-
Resolution: Done
-
Major
-
2.7.1.Final
-
None
-
False
-
-
False
Feature request or enhancement
Which use case/requirement will be addressed by the proposed feature?
During idle periods at the source, when no records are received by the connector, the lagBehindSource metric retains its old value, incorrectly indicating that the connector is lagging behind. A mechanism is needed to reset the lagBehindSource metric in such cases.
Currently, there is no way to reset this metric individually; only a group reset is available, which resets all metrics in StreamingMeter together. Additionally, StreamingMeter is a private variable in DefaultStreamingChangeEventSourceMetrics, making it inaccessible when extending this class.
(Optional) This approach can be extended to other metric objects where individual metric resets are not possible.
Implementation ideas (optional)
- Provide a getter method for the StreamingMeter object.
- Provide a reset method for each individual metric.