public void updateStream ( String scope , String streamName , Duration latency ) { DYNAMIC_LOGGER . incCounterValue ( globalMetricName ( UPDATE_STREAM ) , 1 ) ; DYNAMIC_LOGGER . incCounterValue ( UPDATE_STREAM , 1 , streamTags ( scope , streamName ) ) ; updateStreamLatency . reportSuccessValue ( latency . toMillis ( ) ) ; }
This method increments the global and Stream - specific counters of Stream updates and reports the latency of the operation .