Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ public CompletableFuture<WorkflowTask> poll(SlotPermit permit)
.inc(1);
return null;
}
pollerMetricScope
.counter(MetricsType.WORKFLOW_TASK_QUEUE_POLL_SUCCEED_COUNTER)
.inc(1);
Timestamp startedTime = ProtobufTimeUtils.getCurrentProtoTime();
pollerMetricScope
.timer(MetricsType.WORKFLOW_TASK_SCHEDULE_TO_START_LATENCY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public void testWorkerMetrics() throws InterruptedException {
reporter.assertCounter("temporal_worker_start", TAGS_WORKFLOW_WORKER, 1);
reporter.assertCounter("temporal_worker_start", TAGS_ACTIVITY_WORKER, 1);
reporter.assertCounter("temporal_worker_start", TAGS_LOCAL_ACTIVITY_WORKER, 1);
reporter.assertCounter(
"temporal_workflow_task_queue_poll_succeed", TAGS_STICKY_WORKFLOW_WORKER);
reporter.assertCounter("temporal_workflow_task_queue_poll_succeed", TAGS_WORKFLOW_WORKER);
// We ran some workflow and activity tasks, so we should have some timers here.
reporter.assertTimer("temporal_activity_schedule_to_start_latency", TAGS_ACTIVITY_WORKER);
reporter.assertTimer("temporal_workflow_task_schedule_to_start_latency", TAGS_WORKFLOW_WORKER);
Expand Down Expand Up @@ -221,6 +224,9 @@ public void testWorkerMetricsAutoPoller() throws InterruptedException {
reporter.assertCounter("temporal_worker_start", TAGS_WORKFLOW_WORKER, 1);
reporter.assertCounter("temporal_worker_start", TAGS_ACTIVITY_WORKER, 1);
reporter.assertCounter("temporal_worker_start", TAGS_LOCAL_ACTIVITY_WORKER, 1);
reporter.assertCounter(
"temporal_workflow_task_queue_poll_succeed", TAGS_STICKY_WORKFLOW_WORKER);
reporter.assertCounter("temporal_workflow_task_queue_poll_succeed", TAGS_WORKFLOW_WORKER);
// We ran some workflow and activity tasks, so we should have some timers here.
reporter.assertTimer("temporal_activity_schedule_to_start_latency", TAGS_ACTIVITY_WORKER);
reporter.assertTimer("temporal_workflow_task_schedule_to_start_latency", TAGS_WORKFLOW_WORKER);
Expand Down
Loading