File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
temporal-sdk/src/main/java/io/temporal/internal/worker Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33import static io .temporal .serviceclient .MetricsTag .METRICS_TAGS_CALL_OPTIONS_KEY ;
44
55import com .google .protobuf .DoubleValue ;
6- import com .google .protobuf .Timestamp ;
76import com .uber .m3 .tally .Scope ;
87import io .grpc .Context ;
98import io .temporal .api .common .v1 .WorkerVersionCapabilities ;
@@ -113,10 +112,11 @@ public CompletableFuture<ActivityTask> poll(SlotPermit permit) {
113112 metricsScope .counter (MetricsType .ACTIVITY_POLL_NO_TASK_COUNTER ).inc (1 );
114113 return null ;
115114 }
116- Timestamp startedTime = ProtobufTimeUtils .getCurrentProtoTime ();
117115 metricsScope
118116 .timer (MetricsType .ACTIVITY_SCHEDULE_TO_START_LATENCY )
119- .record (ProtobufTimeUtils .toM3Duration (startedTime , r .getScheduledTime ()));
117+ .record (
118+ ProtobufTimeUtils .toM3Duration (
119+ r .getStartedTime (), r .getCurrentAttemptScheduledTime ()));
120120 return new ActivityTask (
121121 r ,
122122 permit ,
You can’t perform that action at this time.
0 commit comments