@@ -179,6 +179,9 @@ public void testWorkerMetrics() throws InterruptedException {
179179 reporter .assertCounter ("temporal_worker_start" , TAGS_WORKFLOW_WORKER , 1 );
180180 reporter .assertCounter ("temporal_worker_start" , TAGS_ACTIVITY_WORKER , 1 );
181181 reporter .assertCounter ("temporal_worker_start" , TAGS_LOCAL_ACTIVITY_WORKER , 1 );
182+ reporter .assertCounter (
183+ "temporal_workflow_task_queue_poll_succeed" , TAGS_STICKY_WORKFLOW_WORKER );
184+ reporter .assertCounter ("temporal_workflow_task_queue_poll_succeed" , TAGS_WORKFLOW_WORKER );
182185 // We ran some workflow and activity tasks, so we should have some timers here.
183186 reporter .assertTimer ("temporal_activity_schedule_to_start_latency" , TAGS_ACTIVITY_WORKER );
184187 reporter .assertTimer ("temporal_workflow_task_schedule_to_start_latency" , TAGS_WORKFLOW_WORKER );
@@ -221,6 +224,9 @@ public void testWorkerMetricsAutoPoller() throws InterruptedException {
221224 reporter .assertCounter ("temporal_worker_start" , TAGS_WORKFLOW_WORKER , 1 );
222225 reporter .assertCounter ("temporal_worker_start" , TAGS_ACTIVITY_WORKER , 1 );
223226 reporter .assertCounter ("temporal_worker_start" , TAGS_LOCAL_ACTIVITY_WORKER , 1 );
227+ reporter .assertCounter (
228+ "temporal_workflow_task_queue_poll_succeed" , TAGS_STICKY_WORKFLOW_WORKER );
229+ reporter .assertCounter ("temporal_workflow_task_queue_poll_succeed" , TAGS_WORKFLOW_WORKER );
224230 // We ran some workflow and activity tasks, so we should have some timers here.
225231 reporter .assertTimer ("temporal_activity_schedule_to_start_latency" , TAGS_ACTIVITY_WORKER );
226232 reporter .assertTimer ("temporal_workflow_task_schedule_to_start_latency" , TAGS_WORKFLOW_WORKER );
0 commit comments