ok, i replaced the StatsReporter with PrintStatsReporter() from uber tally example
So that i could print stuff in console, and i see only timers are getting called, the counters etc are not getting called.
I think in prometeus too only the below metrics are getting publised.
Flushed
19:46:35.686 [main] INFO i.t.i.grpc.WorkflowServiceStubsImpl - Created GRPC client for channel: ManagedChannelOrphanWrapper{delegate=ManagedChannelImpl{logId=1, target=127.0.0.1:7233}}
19:46:35.932 [main] INFO io.temporal.internal.worker.Poller - start(): Poller{options=PollerOptions{maximumPollRateIntervalMilliseconds=1000, maximumPollRatePerSecond=0.0, pollBackoffCoefficient=2.0, pollBackoffInitialInterval=PT0.1S, pollBackoffMaximumInterval=PT1M, pollThreadCount=2, pollThreadNamePrefix='Workflow Poller taskQueue="HelloActivity2", namespace="default"'}, identity=40168@G4FSLQ2}
19:46:35.934 [main] INFO io.temporal.internal.worker.Poller - start(): Poller{options=PollerOptions{maximumPollRateIntervalMilliseconds=1000, maximumPollRatePerSecond=0.0, pollBackoffCoefficient=2.0, pollBackoffInitialInterval=PT0.1S, pollBackoffMaximumInterval=PT1M, pollThreadCount=1, pollThreadNamePrefix='Local Activity Poller taskQueue="HelloActivity2", namespace="default"'}, identity=40168@G4FSLQ2}
19:46:35.936 [main] INFO io.temporal.internal.worker.Poller - start(): Poller{options=PollerOptions{maximumPollRateIntervalMilliseconds=1000, maximumPollRatePerSecond=0.0, pollBackoffCoefficient=2.0, pollBackoffInitialInterval=PT0.1S, pollBackoffMaximumInterval=PT1M, pollThreadCount=5, pollThreadNamePrefix='Activity Poller taskQueue="HelloActivity2", namespace="default"'}, identity=40168@G4FSLQ2}
19:46:35.936 [main] INFO io.temporal.internal.worker.Poller - start(): Poller{options=PollerOptions{maximumPollRateIntervalMilliseconds=1000, maximumPollRatePerSecond=0.0, pollBackoffCoefficient=2.0, pollBackoffInitialInterval=PT0.1S, pollBackoffMaximumInterval=PT1M, pollThreadCount=5, pollThreadNamePrefix='Host Local Workflow Poller'}, identity=77372c64-166a-44dd-91d0-f82881dd252c}
TimerImpl temporal_request_latency: 1.407889s
TimerImpl temporal_long_request_latency: 1.596152801s
TimerImpl temporal_workflow_task_schedule_to_start_latency: 6ms
TimerImpl temporal_request_latency: 22.6256ms
TimerImpl temporal_workflow_task_replay_latency: 14.006901ms
TimerImpl temporal_workflow_task_execution_latency: 148.963201ms
TimerImpl temporal_request_latency: 9.1853ms
TimerImpl temporal_workflow_task_execution_total_latency: 160.273001ms
TimerImpl temporal_long_request_latency: 1.765705599s
TimerImpl temporal_activity_schedule_to_start_latency: 7ms
TimerImpl temporal_activity_schedule_to_start_latency: 7ms
TimerImpl temporal_activity_execution_latency: 5.434201ms
TimerImpl temporal_request_latency: 42.7891ms
TimerImpl temporal_activity_endtoend_latency: 40ms
TimerImpl temporal_long_request_latency: 1.8299811s
TimerImpl temporal_workflow_task_schedule_to_start_latency: 6ms
TimerImpl temporal_workflow_task_replay_latency: 1.012ms
TimerImpl temporal_workflow_endtoend_latency: 254ms
TimerImpl temporal_workflow_task_execution_latency: 7.860499ms
TimerImpl temporal_request_latency: 42.438199ms
TimerImpl temporal_request_latency: 43.4042ms
TimerImpl temporal_workflow_task_execution_total_latency: 50.8911ms
TimerImpl temporal_long_request_latency: 303.166ms
Hello World!
Also, inside the Metric scope object i see only these two counters initialized
temporal_sticky_cache_hit=com.uber.m3.tally.CounterImpl@6d9c7d6a,
temporal_sticky_cache_total_forced_eviction=com.uber.m3.tally.CounterImpl@4f62e365}
counters like
MetricsType.WORKFLOW_COMPLETED_COUNTER,
MetricsType.WORKFLOW_CONTINUE_AS_NEW_COUNTER etc are not present in metricscope?
Not sure if i am heading in right direction!