Github user aljoscha commented on a diff in the pull request: https://github.com/apache/flink/pull/2386#discussion_r78148223 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java --- @@ -322,6 +346,151 @@ public final ChainingStrategy getChainingStrategy() { return chainingStrategy; } + + // ------------------------------------------------------------------------ + // Metrics + // ------------------------------------------------------------------------ + + // ------- One input stream + public void processLatencyMarker(LatencyMarker latencyMarker) throws Exception { + reportOrForwardLatencyMarker(latencyMarker); + } + + // ------- Two input stream + public void processLatencyMarker1(LatencyMarker latencyMarker) throws Exception { + reportOrForwardLatencyMarker(latencyMarker); + } + + public void processLatencyMarker2(LatencyMarker latencyMarker) throws Exception { + reportOrForwardLatencyMarker(latencyMarker); + } + + + protected void reportOrForwardLatencyMarker(LatencyMarker maker) { + if(isSink) { --- End diff -- Don't all operators now keep the latency statistics?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---