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 3
3
import static io .temporal .serviceclient .MetricsTag .METRICS_TAGS_CALL_OPTIONS_KEY ;
4
4
5
5
import com .google .protobuf .DoubleValue ;
6
- import com .google .protobuf .Timestamp ;
7
6
import com .uber .m3 .tally .Scope ;
8
7
import io .grpc .Context ;
9
8
import io .temporal .api .common .v1 .WorkerVersionCapabilities ;
@@ -113,10 +112,11 @@ public CompletableFuture<ActivityTask> poll(SlotPermit permit) {
113
112
metricsScope .counter (MetricsType .ACTIVITY_POLL_NO_TASK_COUNTER ).inc (1 );
114
113
return null ;
115
114
}
116
- Timestamp startedTime = ProtobufTimeUtils .getCurrentProtoTime ();
117
115
metricsScope
118
116
.timer (MetricsType .ACTIVITY_SCHEDULE_TO_START_LATENCY )
119
- .record (ProtobufTimeUtils .toM3Duration (startedTime , r .getScheduledTime ()));
117
+ .record (
118
+ ProtobufTimeUtils .toM3Duration (
119
+ r .getStartedTime (), r .getCurrentAttemptScheduledTime ()));
120
120
return new ActivityTask (
121
121
r ,
122
122
permit ,
You can’t perform that action at this time.
0 commit comments