m-trieu commented on code in PR #31784: URL: https://github.com/apache/beam/pull/31784#discussion_r1679951491
########## runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/Work.java: ########## @@ -147,6 +177,29 @@ private static LatencyAttribution.Builder createLatencyAttributionWithActiveLate return latencyAttribution; } + private static String buildLatencyTrackingId(WorkItem workItem) { + return Long.toHexString(workItem.getShardingKey()) + + '-' + + Long.toHexString(workItem.getWorkToken()); + } + + /** Returns a new {@link Work} instance with the same state and a different failure handler. */ + public Work withFailureHandler(Runnable onFailed) { + return new Work( Review Comment: dropped this to add in a different PR -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org