forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefs.go
1615 lines (1552 loc) · 110 KB
/
defs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package metrics
// types used/defined by the package
type (
// MetricName is the name of the metric
MetricName string
// MetricType is the type of the metric
MetricType int
// metricDefinition contains the definition for a metric
metricDefinition struct {
metricType MetricType // metric type
metricName MetricName // metric name
}
// scopeDefinition holds the tag definitions for a scope
scopeDefinition struct {
operation string // 'operation' tag for scope
tags map[string]string // additional tags for scope
}
// ServiceIdx is an index that uniquely identifies the service
ServiceIdx int
)
// MetricTypes which are supported
const (
Counter MetricType = iota
Timer
Gauge
)
// Service names for all services that emit metrics.
const (
Common = iota
Frontend
History
Matching
Worker
Blobstore
NumServices
)
// Common tags for all services
const (
HostnameTagName = "hostname"
OperationTagName = "operation"
CadenceRoleTagName = "cadence_role"
StatsTypeTagName = "stats_type"
CacheTypeTagName = "cache_type"
)
// This package should hold all the metrics and tags for cadence
const (
UnknownDirectoryTagValue = "Unknown"
HistoryRoleTagValue = "history"
MatchingRoleTagValue = "matching"
FrontendRoleTagValue = "frontend"
AdminRoleTagValue = "admin"
BlobstoreRoleTagValue = "blobstore"
SizeStatsTypeTagValue = "size"
CountStatsTypeTagValue = "count"
MutableStateCacheTypeTagValue = "mutablestate"
EventsCacheTypeTagValue = "events"
)
// Common service base metrics
const (
RestartCount = "restarts"
NumGoRoutinesGauge = "num_goroutines"
GoMaxProcsGauge = "gomaxprocs"
MemoryAllocatedGauge = "memory_allocated"
MemoryHeapGauge = "memory_heap"
MemoryHeapIdleGauge = "memory_heapidle"
MemoryHeapInuseGauge = "memory_heapinuse"
MemoryStackGauge = "memory_stack"
NumGCCounter = "memory_num_gc"
GcPauseMsTimer = "memory_gc_pause_ms"
)
// ServiceMetrics are types for common service base metrics
var ServiceMetrics = map[MetricName]MetricType{
RestartCount: Counter,
}
// GoRuntimeMetrics represent the runtime stats from go runtime
var GoRuntimeMetrics = map[MetricName]MetricType{
NumGoRoutinesGauge: Gauge,
GoMaxProcsGauge: Gauge,
MemoryAllocatedGauge: Gauge,
MemoryHeapGauge: Gauge,
MemoryHeapIdleGauge: Gauge,
MemoryHeapInuseGauge: Gauge,
MemoryStackGauge: Gauge,
NumGCCounter: Counter,
GcPauseMsTimer: Timer,
}
// Scopes enum
const (
// -- Common Operation scopes --
// PersistenceCreateShardScope tracks CreateShard calls made by service to persistence layer
PersistenceCreateShardScope = iota
// PersistenceGetShardScope tracks GetShard calls made by service to persistence layer
PersistenceGetShardScope
// PersistenceUpdateShardScope tracks UpdateShard calls made by service to persistence layer
PersistenceUpdateShardScope
// PersistenceCreateWorkflowExecutionScope tracks CreateWorkflowExecution calls made by service to persistence layer
PersistenceCreateWorkflowExecutionScope
// PersistenceGetWorkflowExecutionScope tracks GetWorkflowExecution calls made by service to persistence layer
PersistenceGetWorkflowExecutionScope
// PersistenceUpdateWorkflowExecutionScope tracks UpdateWorkflowExecution calls made by service to persistence layer
PersistenceUpdateWorkflowExecutionScope
// PersistenceResetMutableStateScope tracks ResetMutableState calls made by service to persistence layer
PersistenceResetMutableStateScope
// PersistenceResetWorkflowExecutionScope tracks ResetWorkflowExecution calls made by service to persistence layer
PersistenceResetWorkflowExecutionScope
// PersistenceDeleteWorkflowExecutionScope tracks DeleteWorkflowExecution calls made by service to persistence layer
PersistenceDeleteWorkflowExecutionScope
// PersistenceDeleteCurrentWorkflowExecutionScope tracks DeleteCurrentWorkflowExecution calls made by service to persistence layer
PersistenceDeleteCurrentWorkflowExecutionScope
// PersistenceGetCurrentExecutionScope tracks GetCurrentExecution calls made by service to persistence layer
PersistenceGetCurrentExecutionScope
// PersistenceGetTransferTasksScope tracks GetTransferTasks calls made by service to persistence layer
PersistenceGetTransferTasksScope
// PersistenceGetReplicationTasksScope tracks GetReplicationTasks calls made by service to persistence layer
PersistenceGetReplicationTasksScope
// PersistenceCompleteTransferTaskScope tracks CompleteTransferTasks calls made by service to persistence layer
PersistenceCompleteTransferTaskScope
// PersistenceRangeCompleteTransferTaskScope tracks CompleteTransferTasks calls made by service to persistence layer
PersistenceRangeCompleteTransferTaskScope
// PersistenceCompleteReplicationTaskScope tracks CompleteReplicationTasks calls made by service to persistence layer
PersistenceCompleteReplicationTaskScope
// PersistenceGetTimerIndexTasksScope tracks GetTimerIndexTasks calls made by service to persistence layer
PersistenceGetTimerIndexTasksScope
// PersistenceCompleteTimerTaskScope tracks CompleteTimerTasks calls made by service to persistence layer
PersistenceCompleteTimerTaskScope
// PersistenceRangeCompleteTimerTaskScope tracks CompleteTimerTasks calls made by service to persistence layer
PersistenceRangeCompleteTimerTaskScope
// PersistenceCreateTaskScope tracks CreateTask calls made by service to persistence layer
PersistenceCreateTaskScope
// PersistenceGetTasksScope tracks GetTasks calls made by service to persistence layer
PersistenceGetTasksScope
// PersistenceCompleteTaskScope tracks CompleteTask calls made by service to persistence layer
PersistenceCompleteTaskScope
// PersistenceCompleteTasksLessThanScope is the metric scope for persistence.TaskManager.PersistenceCompleteTasksLessThan API
PersistenceCompleteTasksLessThanScope
// PersistenceLeaseTaskListScope tracks LeaseTaskList calls made by service to persistence layer
PersistenceLeaseTaskListScope
// PersistenceUpdateTaskListScope tracks PersistenceUpdateTaskListScope calls made by service to persistence layer
PersistenceUpdateTaskListScope
// PersistenceListTaskListScope is the metric scope for persistence.TaskManager.ListTaskList API
PersistenceListTaskListScope
// PersistenceDeleteTaskListScope is the metric scope for persistence.TaskManager.DeleteTaskList API
PersistenceDeleteTaskListScope
// PersistenceAppendHistoryEventsScope tracks AppendHistoryEvents calls made by service to persistence layer
PersistenceAppendHistoryEventsScope
// PersistenceGetWorkflowExecutionHistoryScope tracks GetWorkflowExecutionHistory calls made by service to persistence layer
PersistenceGetWorkflowExecutionHistoryScope
// PersistenceDeleteWorkflowExecutionHistoryScope tracks DeleteWorkflowExecutionHistory calls made by service to persistence layer
PersistenceDeleteWorkflowExecutionHistoryScope
// PersistenceCreateDomainScope tracks CreateDomain calls made by service to persistence layer
PersistenceCreateDomainScope
// PersistenceGetDomainScope tracks GetDomain calls made by service to persistence layer
PersistenceGetDomainScope
// PersistenceUpdateDomainScope tracks UpdateDomain calls made by service to persistence layer
PersistenceUpdateDomainScope
// PersistenceDeleteDomainScope tracks DeleteDomain calls made by service to persistence layer
PersistenceDeleteDomainScope
// PersistenceDeleteDomainByNameScope tracks DeleteDomainByName calls made by service to persistence layer
PersistenceDeleteDomainByNameScope
// PersistenceListDomainScope tracks DeleteDomainByName calls made by service to persistence layer
PersistenceListDomainScope
// PersistenceGetMetadataScope tracks DeleteDomainByName calls made by service to persistence layer
PersistenceGetMetadataScope
// PersistenceRecordWorkflowExecutionStartedScope tracks RecordWorkflowExecutionStarted calls made by service to persistence layer
PersistenceRecordWorkflowExecutionStartedScope
// PersistenceRecordWorkflowExecutionClosedScope tracks RecordWorkflowExecutionClosed calls made by service to persistence layer
PersistenceRecordWorkflowExecutionClosedScope
// PersistenceListOpenWorkflowExecutionsScope tracks ListOpenWorkflowExecutions calls made by service to persistence layer
PersistenceListOpenWorkflowExecutionsScope
// PersistenceListClosedWorkflowExecutionsScope tracks ListClosedWorkflowExecutions calls made by service to persistence layer
PersistenceListClosedWorkflowExecutionsScope
// PersistenceListOpenWorkflowExecutionsByTypeScope tracks ListOpenWorkflowExecutionsByType calls made by service to persistence layer
PersistenceListOpenWorkflowExecutionsByTypeScope
// PersistenceListClosedWorkflowExecutionsByTypeScope tracks ListClosedWorkflowExecutionsByType calls made by service to persistence layer
PersistenceListClosedWorkflowExecutionsByTypeScope
// PersistenceListOpenWorkflowExecutionsByWorkflowIDScope tracks ListOpenWorkflowExecutionsByWorkflowID calls made by service to persistence layer
PersistenceListOpenWorkflowExecutionsByWorkflowIDScope
// PersistenceListClosedWorkflowExecutionsByWorkflowIDScope tracks ListClosedWorkflowExecutionsByWorkflowID calls made by service to persistence layer
PersistenceListClosedWorkflowExecutionsByWorkflowIDScope
// PersistenceListClosedWorkflowExecutionsByStatusScope tracks ListClosedWorkflowExecutionsByStatus calls made by service to persistence layer
PersistenceListClosedWorkflowExecutionsByStatusScope
// PersistenceGetClosedWorkflowExecutionScope tracks GetClosedWorkflowExecution calls made by service to persistence layer
PersistenceGetClosedWorkflowExecutionScope
// PersistenceVisibilityDeleteWorkflowExecutionScope is the metrics scope for persistence.VisibilityManager.DeleteWorkflowExecution
PersistenceVisibilityDeleteWorkflowExecutionScope
// PersistenceListWorkflowExecutionsScope tracks ListWorkflowExecutions calls made by service to persistence layer
PersistenceListWorkflowExecutionsScope
// PersistenceScanWorkflowExecutionsScope tracks ScanWorkflowExecutions calls made by service to persistence layer
PersistenceScanWorkflowExecutionsScope
// PersistenceCountWorkflowExecutionsScope tracks CountWorkflowExecutions calls made by service to persistence layer
PersistenceCountWorkflowExecutionsScope
// HistoryClientStartWorkflowExecutionScope tracks RPC calls to history service
HistoryClientStartWorkflowExecutionScope
// HistoryClientRecordActivityTaskHeartbeatScope tracks RPC calls to history service
HistoryClientRecordActivityTaskHeartbeatScope
// HistoryClientRespondDecisionTaskCompletedScope tracks RPC calls to history service
HistoryClientRespondDecisionTaskCompletedScope
// HistoryClientRespondDecisionTaskFailedScope tracks RPC calls to history service
HistoryClientRespondDecisionTaskFailedScope
// HistoryClientRespondActivityTaskCompletedScope tracks RPC calls to history service
HistoryClientRespondActivityTaskCompletedScope
// HistoryClientRespondActivityTaskFailedScope tracks RPC calls to history service
HistoryClientRespondActivityTaskFailedScope
// HistoryClientRespondActivityTaskCanceledScope tracks RPC calls to history service
HistoryClientRespondActivityTaskCanceledScope
// HistoryClientGetMutableStateScope tracks RPC calls to history service
HistoryClientGetMutableStateScope
// HistoryClientResetStickyTaskListScope tracks RPC calls to history service
HistoryClientResetStickyTaskListScope
// HistoryClientDescribeWorkflowExecutionScope tracks RPC calls to history service
HistoryClientDescribeWorkflowExecutionScope
// HistoryClientRecordDecisionTaskStartedScope tracks RPC calls to history service
HistoryClientRecordDecisionTaskStartedScope
// HistoryClientRecordActivityTaskStartedScope tracks RPC calls to history service
HistoryClientRecordActivityTaskStartedScope
// HistoryClientRequestCancelWorkflowExecutionScope tracks RPC calls to history service
HistoryClientRequestCancelWorkflowExecutionScope
// HistoryClientSignalWorkflowExecutionScope tracks RPC calls to history service
HistoryClientSignalWorkflowExecutionScope
// HistoryClientSignalWithStartWorkflowExecutionScope tracks RPC calls to history service
HistoryClientSignalWithStartWorkflowExecutionScope
// HistoryClientRemoveSignalMutableStateScope tracks RPC calls to history service
HistoryClientRemoveSignalMutableStateScope
// HistoryClientTerminateWorkflowExecutionScope tracks RPC calls to history service
HistoryClientTerminateWorkflowExecutionScope
// HistoryClientResetWorkflowExecutionScope tracks RPC calls to history service
HistoryClientResetWorkflowExecutionScope
// HistoryClientScheduleDecisionTaskScope tracks RPC calls to history service
HistoryClientScheduleDecisionTaskScope
// HistoryClientRecordChildExecutionCompletedScope tracks RPC calls to history service
HistoryClientRecordChildExecutionCompletedScope
// HistoryClientReplicateEventsScope tracks RPC calls to history service
HistoryClientReplicateEventsScope
// HistoryClientReplicateRawEventsScope tracks RPC calls to history service
HistoryClientReplicateRawEventsScope
// HistoryClientSyncShardStatusScope tracks RPC calls to history service
HistoryClientSyncShardStatusScope
// HistoryClientSyncActivityScope tracks RPC calls to history service
HistoryClientSyncActivityScope
// MatchingClientPollForDecisionTaskScope tracks RPC calls to matching service
MatchingClientPollForDecisionTaskScope
// MatchingClientPollForActivityTaskScope tracks RPC calls to matching service
MatchingClientPollForActivityTaskScope
// MatchingClientAddActivityTaskScope tracks RPC calls to matching service
MatchingClientAddActivityTaskScope
// MatchingClientAddDecisionTaskScope tracks RPC calls to matching service
MatchingClientAddDecisionTaskScope
// MatchingClientQueryWorkflowScope tracks RPC calls to matching service
MatchingClientQueryWorkflowScope
// MatchingClientRespondQueryTaskCompletedScope tracks RPC calls to matching service
MatchingClientRespondQueryTaskCompletedScope
// MatchingClientCancelOutstandingPollScope tracks RPC calls to matching service
MatchingClientCancelOutstandingPollScope
// MatchingClientDescribeTaskListScope tracks RPC calls to matching service
MatchingClientDescribeTaskListScope
// FrontendClientDeprecateDomainScope tracks RPC calls to frontend service
FrontendClientDeprecateDomainScope
// FrontendClientDescribeDomainScope tracks RPC calls to frontend service
FrontendClientDescribeDomainScope
// FrontendClientDescribeTaskListScope tracks RPC calls to frontend service
FrontendClientDescribeTaskListScope
// FrontendClientDescribeWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientDescribeWorkflowExecutionScope
// FrontendClientGetWorkflowExecutionHistoryScope tracks RPC calls to frontend service
FrontendClientGetWorkflowExecutionHistoryScope
// FrontendClientListClosedWorkflowExecutionsScope tracks RPC calls to frontend service
FrontendClientListClosedWorkflowExecutionsScope
// FrontendClientListDomainsScope tracks RPC calls to frontend service
FrontendClientListDomainsScope
// FrontendClientListOpenWorkflowExecutionsScope tracks RPC calls to frontend service
FrontendClientListOpenWorkflowExecutionsScope
// FrontendClientPollForActivityTaskScope tracks RPC calls to frontend service
FrontendClientPollForActivityTaskScope
// FrontendClientPollForDecisionTaskScope tracks RPC calls to frontend service
FrontendClientPollForDecisionTaskScope
// FrontendClientQueryWorkflowScope tracks RPC calls to frontend service
FrontendClientQueryWorkflowScope
// FrontendClientRecordActivityTaskHeartbeatScope tracks RPC calls to frontend service
FrontendClientRecordActivityTaskHeartbeatScope
// FrontendClientRecordActivityTaskHeartbeatByIDScope tracks RPC calls to frontend service
FrontendClientRecordActivityTaskHeartbeatByIDScope
// FrontendClientRegisterDomainScope tracks RPC calls to frontend service
FrontendClientRegisterDomainScope
// FrontendClientRequestCancelWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientRequestCancelWorkflowExecutionScope
// FrontendClientResetStickyTaskListScope tracks RPC calls to frontend service
FrontendClientResetStickyTaskListScope
// FrontendClientResetWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientResetWorkflowExecutionScope
// FrontendClientRespondActivityTaskCanceledScope tracks RPC calls to frontend service
FrontendClientRespondActivityTaskCanceledScope
// FrontendClientRespondActivityTaskCanceledByIDScope tracks RPC calls to frontend service
FrontendClientRespondActivityTaskCanceledByIDScope
// FrontendClientRespondActivityTaskCompletedScope tracks RPC calls to frontend service
FrontendClientRespondActivityTaskCompletedScope
// FrontendClientRespondActivityTaskCompletedByIDScope tracks RPC calls to frontend service
FrontendClientRespondActivityTaskCompletedByIDScope
// FrontendClientRespondActivityTaskFailedScope tracks RPC calls to frontend service
FrontendClientRespondActivityTaskFailedScope
// FrontendClientRespondActivityTaskFailedByIDScope tracks RPC calls to frontend service
FrontendClientRespondActivityTaskFailedByIDScope
// FrontendClientRespondDecisionTaskCompletedScope tracks RPC calls to frontend service
FrontendClientRespondDecisionTaskCompletedScope
// FrontendClientRespondDecisionTaskFailedScope tracks RPC calls to frontend service
FrontendClientRespondDecisionTaskFailedScope
// FrontendClientRespondQueryTaskCompletedScope tracks RPC calls to frontend service
FrontendClientRespondQueryTaskCompletedScope
// FrontendClientSignalWithStartWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientSignalWithStartWorkflowExecutionScope
// FrontendClientSignalWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientSignalWorkflowExecutionScope
// FrontendClientStartWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientStartWorkflowExecutionScope
// FrontendClientTerminateWorkflowExecutionScope tracks RPC calls to frontend service
FrontendClientTerminateWorkflowExecutionScope
// FrontendClientUpdateDomainScope tracks RPC calls to frontend service
FrontendClientUpdateDomainScope
// AdminClientDescribeHistoryHostScope tracks RPC calls to admin service
AdminClientDescribeHistoryHostScope
// AdminClientDescribeWorkflowExecutionScope tracks RPC calls to admin service
AdminClientDescribeWorkflowExecutionScope
// AdminClientGetWorkflowExecutionRawHistoryScope tracks RPC calls to admin service
AdminClientGetWorkflowExecutionRawHistoryScope
// MessagingPublishScope tracks Publish calls made by service to messaging layer
MessagingClientPublishScope
// MessagingPublishBatchScope tracks Publish calls made by service to messaging layer
MessagingClientPublishBatchScope
// DomainCacheScope tracks domain cache callbacks
DomainCacheScope
// HistoryRereplicationByTransferTaskScope tracks history replication calls made by transfer task
HistoryRereplicationByTransferTaskScope
// HistoryRereplicationByTimerTaskScope tracks history replication calls made by timer task
HistoryRereplicationByTimerTaskScope
// HistoryRereplicationByHistoryReplicationScope tracks history replication calls made by history replication
HistoryRereplicationByHistoryReplicationScope
// HistoryRereplicationByHistoryMetadataReplicationScope tracks history replication calls made by history replication
HistoryRereplicationByHistoryMetadataReplicationScope
// HistoryRereplicationByActivityReplicationScope tracks history replication calls made by activity replication
HistoryRereplicationByActivityReplicationScope
// PersistenceAppendHistoryNodesScope tracks AppendHistoryNodes calls made by service to persistence layer
PersistenceAppendHistoryNodesScope
// PersistenceReadHistoryBranchScope tracks ReadHistoryBranch calls made by service to persistence layer
PersistenceReadHistoryBranchScope
// PersistenceForkHistoryBranchScope tracks ForkHistoryBranch calls made by service to persistence layer
PersistenceForkHistoryBranchScope
// PersistenceDeleteHistoryBranchScope tracks DeleteHistoryBranch calls made by service to persistence layer
PersistenceDeleteHistoryBranchScope
// PersistenceCompleteForkBranchScope tracks CompleteForkBranch calls made by service to persistence layer
PersistenceCompleteForkBranchScope
// PersistenceGetHistoryTreeScope tracks GetHistoryTree calls made by service to persistence layer
PersistenceGetHistoryTreeScope
// BlobstoreClientUploadScope tracks Upload calls to blobstore
BlobstoreClientUploadScope
// BlobstoreClientDownloadScope tracks Download calls to blobstore
BlobstoreClientDownloadScope
// BlobstoreClientGetTagsScope tracks GetTags calls to blobstore
BlobstoreClientGetTagsScope
// BlobstoreClientExistsScope tracks Exists calls to blobstore
BlobstoreClientExistsScope
// BlobstoreClientDeleteScope tracks Delete calls to blobstore
BlobstoreClientDeleteScope
// BlobstoreClientListByPrefixScope tracks ListByPrefix calls to blobstore
BlobstoreClientListByPrefixScope
// BlobstoreClientBucketMetadataScope tracks BucketMetadata calls to blobstore
BlobstoreClientBucketMetadataScope
// BlobstoreClientBucketExistsScope tracks BucketExists calls to blobstore
BlobstoreClientBucketExistsScope
// ClusterMetadataArchivalConfigScope tracks ArchivalConfig calls to ClusterMetadata
ClusterMetadataArchivalConfigScope
// ElasticsearchRecordWorkflowExecutionStartedScope tracks RecordWorkflowExecutionStarted calls made by service to persistence layer
ElasticsearchRecordWorkflowExecutionStartedScope
// ElasticsearchRecordWorkflowExecutionClosedScope tracks RecordWorkflowExecutionClosed calls made by service to persistence layer
ElasticsearchRecordWorkflowExecutionClosedScope
// ElasticsearchListOpenWorkflowExecutionsScope tracks ListOpenWorkflowExecutions calls made by service to persistence layer
ElasticsearchListOpenWorkflowExecutionsScope
// ElasticsearchListClosedWorkflowExecutionsScope tracks ListClosedWorkflowExecutions calls made by service to persistence layer
ElasticsearchListClosedWorkflowExecutionsScope
// ElasticsearchListOpenWorkflowExecutionsByTypeScope tracks ListOpenWorkflowExecutionsByType calls made by service to persistence layer
ElasticsearchListOpenWorkflowExecutionsByTypeScope
// ElasticsearchListClosedWorkflowExecutionsByTypeScope tracks ListClosedWorkflowExecutionsByType calls made by service to persistence layer
ElasticsearchListClosedWorkflowExecutionsByTypeScope
// ElasticsearchListOpenWorkflowExecutionsByWorkflowIDScope tracks ListOpenWorkflowExecutionsByWorkflowID calls made by service to persistence layer
ElasticsearchListOpenWorkflowExecutionsByWorkflowIDScope
// ElasticsearchListClosedWorkflowExecutionsByWorkflowIDScope tracks ListClosedWorkflowExecutionsByWorkflowID calls made by service to persistence layer
ElasticsearchListClosedWorkflowExecutionsByWorkflowIDScope
// ElasticsearchListClosedWorkflowExecutionsByStatusScope tracks ListClosedWorkflowExecutionsByStatus calls made by service to persistence layer
ElasticsearchListClosedWorkflowExecutionsByStatusScope
// ElasticsearchGetClosedWorkflowExecutionScope tracks GetClosedWorkflowExecution calls made by service to persistence layer
ElasticsearchGetClosedWorkflowExecutionScope
// ElasticsearchListWorkflowExecutionsScope tracks ListWorkflowExecutions calls made by service to persistence layer
ElasticsearchListWorkflowExecutionsScope
// ElasticsearchScanWorkflowExecutionsScope tracks ScanWorkflowExecutions calls made by service to persistence layer
ElasticsearchScanWorkflowExecutionsScope
// ElasticsearchCountWorkflowExecutionsScope tracks CountWorkflowExecutions calls made by service to persistence layer
ElasticsearchCountWorkflowExecutionsScope
// SequentialTaskProcessingScope is used by sequential task processing logic
SequentialTaskProcessingScope
NumCommonScopes
)
// -- Operation scopes for Admin service --
const (
// AdminDescribeHistoryHostScope is the metric scope for admin.AdminDescribeHistoryHostScope
AdminDescribeHistoryHostScope = iota + NumCommonScopes
// AdminDescribeWorkflowExecutionScope is the metric scope for admin.AdminDescribeWorkflowExecutionScope
AdminDescribeWorkflowExecutionScope
// AdminGetWorkflowExecutionRawHistoryScope is the metric scope for admin.GetWorkflowExecutionRawHistoryScope
AdminGetWorkflowExecutionRawHistoryScope
NumAdminScopes
)
// -- Operation scopes for Frontend service --
const (
// FrontendStartWorkflowExecutionScope is the metric scope for frontend.StartWorkflowExecution
FrontendStartWorkflowExecutionScope = iota + NumAdminScopes
// PollForDecisionTaskScope is the metric scope for frontend.PollForDecisionTask
FrontendPollForDecisionTaskScope
// FrontendPollForActivityTaskScope is the metric scope for frontend.PollForActivityTask
FrontendPollForActivityTaskScope
// FrontendRecordActivityTaskHeartbeatScope is the metric scope for frontend.RecordActivityTaskHeartbeat
FrontendRecordActivityTaskHeartbeatScope
// FrontendRecordActivityTaskHeartbeatByIDScope is the metric scope for frontend.RespondDecisionTaskCompleted
FrontendRecordActivityTaskHeartbeatByIDScope
// FrontendRespondDecisionTaskCompletedScope is the metric scope for frontend.RespondDecisionTaskCompleted
FrontendRespondDecisionTaskCompletedScope
// FrontendRespondDecisionTaskFailedScope is the metric scope for frontend.RespondDecisionTaskFailed
FrontendRespondDecisionTaskFailedScope
// FrontendRespondQueryTaskCompletedScope is the metric scope for frontend.RespondQueryTaskCompleted
FrontendRespondQueryTaskCompletedScope
// FrontendRespondActivityTaskCompletedScope is the metric scope for frontend.RespondActivityTaskCompleted
FrontendRespondActivityTaskCompletedScope
// FrontendRespondActivityTaskFailedScope is the metric scope for frontend.RespondActivityTaskFailed
FrontendRespondActivityTaskFailedScope
// FrontendRespondActivityTaskCanceledScope is the metric scope for frontend.RespondActivityTaskCanceled
FrontendRespondActivityTaskCanceledScope
// FrontendRespondActivityTaskCompletedScope is the metric scope for frontend.RespondActivityTaskCompletedByID
FrontendRespondActivityTaskCompletedByIDScope
// FrontendRespondActivityTaskFailedScope is the metric scope for frontend.RespondActivityTaskFailedByID
FrontendRespondActivityTaskFailedByIDScope
// FrontendRespondActivityTaskCanceledScope is the metric scope for frontend.RespondActivityTaskCanceledByID
FrontendRespondActivityTaskCanceledByIDScope
// FrontendGetWorkflowExecutionHistoryScope is the metric scope for frontend.GetWorkflowExecutionHistory
FrontendGetWorkflowExecutionHistoryScope
// FrontendSignalWorkflowExecutionScope is the metric scope for frontend.SignalWorkflowExecution
FrontendSignalWorkflowExecutionScope
// FrontendSignalWithStartWorkflowExecutionScope is the metric scope for frontend.SignalWithStartWorkflowExecution
FrontendSignalWithStartWorkflowExecutionScope
// FrontendTerminateWorkflowExecutionScope is the metric scope for frontend.TerminateWorkflowExecution
FrontendTerminateWorkflowExecutionScope
// FrontendRequestCancelWorkflowExecutionScope is the metric scope for frontend.RequestCancelWorkflowExecution
FrontendRequestCancelWorkflowExecutionScope
// FrontendListOpenWorkflowExecutionsScope is the metric scope for frontend.ListOpenWorkflowExecutions
FrontendListOpenWorkflowExecutionsScope
// FrontendListClosedWorkflowExecutionsScope is the metric scope for frontend.ListClosedWorkflowExecutions
FrontendListClosedWorkflowExecutionsScope
// FrontendListWorkflowExecutionsScope is the metric scope for frontend.ListWorkflowExecutions
FrontendListWorkflowExecutionsScope
// FrontendScanWorkflowExecutionsScope is the metric scope for frontend.ListWorkflowExecutions
FrontendScanWorkflowExecutionsScope
// FrontendCountWorkflowExecutionsScope is the metric scope for frontend.CountWorkflowExecutions
FrontendCountWorkflowExecutionsScope
// FrontendRegisterDomainScope is the metric scope for frontend.RegisterDomain
FrontendRegisterDomainScope
// FrontendDescribeDomainScope is the metric scope for frontend.DescribeDomain
FrontendDescribeDomainScope
// FrontendUpdateDomainScope is the metric scope for frontend.DescribeDomain
FrontendUpdateDomainScope
// FrontendDeprecateDomainScope is the metric scope for frontend.DeprecateDomain
FrontendDeprecateDomainScope
// FrontendQueryWorkflowScope is the metric scope for frontend.QueryWorkflow
FrontendQueryWorkflowScope
// FrontendDescribeWorkflowExecutionScope is the metric scope for frontend.DescribeWorkflowExecution
FrontendDescribeWorkflowExecutionScope
// FrontendDescribeTaskListScope is the metric scope for frontend.DescribeTaskList
FrontendDescribeTaskListScope
// FrontendResetStickyTaskListScope is the metric scope for frontend.ResetStickyTaskList
FrontendResetStickyTaskListScope
// FrontendListDomainsScope is the metric scope for frontend.ListDomain
FrontendListDomainsScope
// FrontendResetWorkflowExecutionScope is the metric scope for frontend.ResetWorkflowExecution
FrontendResetWorkflowExecutionScope
NumFrontendScopes
)
// -- Operation scopes for History service --
const (
// HistoryStartWorkflowExecutionScope tracks StartWorkflowExecution API calls received by service
HistoryStartWorkflowExecutionScope = iota + NumCommonScopes
// HistoryRecordActivityTaskHeartbeatScope tracks RecordActivityTaskHeartbeat API calls received by service
HistoryRecordActivityTaskHeartbeatScope
// HistoryRespondDecisionTaskCompletedScope tracks RespondDecisionTaskCompleted API calls received by service
HistoryRespondDecisionTaskCompletedScope
// HistoryRespondDecisionTaskFailedScope tracks RespondDecisionTaskFailed API calls received by service
HistoryRespondDecisionTaskFailedScope
// HistoryRespondActivityTaskCompletedScope tracks RespondActivityTaskCompleted API calls received by service
HistoryRespondActivityTaskCompletedScope
// HistoryRespondActivityTaskFailedScope tracks RespondActivityTaskFailed API calls received by service
HistoryRespondActivityTaskFailedScope
// HistoryRespondActivityTaskCanceledScope tracks RespondActivityTaskCanceled API calls received by service
HistoryRespondActivityTaskCanceledScope
// HistoryGetMutableStateScope tracks GetMutableStateScope API calls received by service
HistoryGetMutableStateScope
// HistoryResetStickyTaskListScope tracks ResetStickyTaskListScope API calls received by service
HistoryResetStickyTaskListScope
// HistoryDescribeWorkflowExecutionScope tracks DescribeWorkflowExecution API calls received by service
HistoryDescribeWorkflowExecutionScope
// HistoryRecordDecisionTaskStartedScope tracks RecordDecisionTaskStarted API calls received by service
HistoryRecordDecisionTaskStartedScope
// HistoryRecordActivityTaskStartedScope tracks RecordActivityTaskStarted API calls received by service
HistoryRecordActivityTaskStartedScope
// HistorySignalWorkflowExecutionScope tracks SignalWorkflowExecution API calls received by service
HistorySignalWorkflowExecutionScope
// HistorySignalWithStartWorkflowExecutionScope tracks SignalWithStartWorkflowExecution API calls received by service
HistorySignalWithStartWorkflowExecutionScope
// HistoryRemoveSignalMutableStateScope tracks RemoveSignalMutableState API calls received by service
HistoryRemoveSignalMutableStateScope
// HistoryTerminateWorkflowExecutionScope tracks TerminateWorkflowExecution API calls received by service
HistoryTerminateWorkflowExecutionScope
// HistoryScheduleDecisionTaskScope tracks ScheduleDecisionTask API calls received by service
HistoryScheduleDecisionTaskScope
// HistoryRecordChildExecutionCompletedScope tracks CompleteChildExecution API calls received by service
HistoryRecordChildExecutionCompletedScope
// HistoryRequestCancelWorkflowExecutionScope tracks RequestCancelWorkflowExecution API calls received by service
HistoryRequestCancelWorkflowExecutionScope
// HistoryReplicateEventsScope tracks ReplicateEvents API calls received by service
HistoryReplicateEventsScope
// HistoryReplicateRawEventsScope tracks ReplicateEvents API calls received by service
HistoryReplicateRawEventsScope
// HistorySyncShardStatusScope tracks HistorySyncShardStatus API calls received by service
HistorySyncShardStatusScope
// HistorySyncActivityScope tracks HistoryActivity API calls received by service
HistorySyncActivityScope
// HistoryDescribeMutableStateScope tracks HistoryActivity API calls received by service
HistoryDescribeMutableStateScope
// HistoryShardControllerScope is the scope used by shard controller
HistoryShardControllerScope
// TransferQueueProcessorScope is the scope used by all metric emitted by transfer queue processor
TransferQueueProcessorScope
// TransferActiveQueueProcessorScope is the scope used by all metric emitted by transfer queue processor
TransferActiveQueueProcessorScope
// TransferStandbyQueueProcessorScope is the scope used by all metric emitted by transfer queue processor
TransferStandbyQueueProcessorScope
// TransferActiveTaskActivityScope is the scope used for activity task processing by transfer queue processor
TransferActiveTaskActivityScope
// TransferActiveTaskDecisionScope is the scope used for decision task processing by transfer queue processor
TransferActiveTaskDecisionScope
// TransferActiveTaskCloseExecutionScope is the scope used for close execution task processing by transfer queue processor
TransferActiveTaskCloseExecutionScope
// TransferActiveTaskCancelExecutionScope is the scope used for cancel execution task processing by transfer queue processor
TransferActiveTaskCancelExecutionScope
// TransferActiveTaskSignalExecutionScope is the scope used for signal execution task processing by transfer queue processor
TransferActiveTaskSignalExecutionScope
// TransferActiveTaskStartChildExecutionScope is the scope used for start child execution task processing by transfer queue processor
TransferActiveTaskStartChildExecutionScope
// TransferActiveTaskRecordWorkflowStartedScope is the scope used for record workflow started task processing by transfer queue processor
TransferActiveTaskRecordWorkflowStartedScope
// TransferActiveTaskResetWorkflowScope is the scope used for record workflow started task processing by transfer queue processor
TransferActiveTaskResetWorkflowScope
// TransferStandbyTaskResetWorkflowScope is the scope used for record workflow started task processing by transfer queue processor
TransferStandbyTaskResetWorkflowScope
// TransferStandbyTaskActivityScope is the scope used for activity task processing by transfer queue processor
TransferStandbyTaskActivityScope
// TransferStandbyTaskDecisionScope is the scope used for decision task processing by transfer queue processor
TransferStandbyTaskDecisionScope
// TransferStandbyTaskCloseExecutionScope is the scope used for close execution task processing by transfer queue processor
TransferStandbyTaskCloseExecutionScope
// TransferStandbyTaskCancelExecutionScope is the scope used for cancel execution task processing by transfer queue processor
TransferStandbyTaskCancelExecutionScope
// TransferStandbyTaskSignalExecutionScope is the scope used for signal execution task processing by transfer queue processor
TransferStandbyTaskSignalExecutionScope
// TransferStandbyTaskStartChildExecutionScope is the scope used for start child execution task processing by transfer queue processor
TransferStandbyTaskStartChildExecutionScope
// TransferStandbyTaskRecordWorkflowStartedScope is the scope used for record workflow started task processing by transfer queue processor
TransferStandbyTaskRecordWorkflowStartedScope
// TimerQueueProcessorScope is the scope used by all metric emitted by timer queue processor
TimerQueueProcessorScope
// TimerActiveQueueProcessorScope is the scope used by all metric emitted by timer queue processor
TimerActiveQueueProcessorScope
// TimerQueueProcessorScope is the scope used by all metric emitted by timer queue processor
TimerStandbyQueueProcessorScope
// TimerActiveTaskActivityTimeoutScope is the scope used by metric emitted by timer queue processor for processing activity timeouts
TimerActiveTaskActivityTimeoutScope
// TimerActiveTaskDecisionTimeoutScope is the scope used by metric emitted by timer queue processor for processing decision timeouts
TimerActiveTaskDecisionTimeoutScope
// TimerActiveTaskUserTimerScope is the scope used by metric emitted by timer queue processor for processing user timers
TimerActiveTaskUserTimerScope
// TimerActiveTaskWorkflowTimeoutScope is the scope used by metric emitted by timer queue processor for processing workflow timeouts.
TimerActiveTaskWorkflowTimeoutScope
// TimerActiveTaskActivityRetryTimerScope is the scope used by metric emitted by timer queue processor for processing retry task.
TimerActiveTaskActivityRetryTimerScope
// TimerActiveTaskWorkflowBackoffTimerScope is the scope used by metric emitted by timer queue processor for processing retry task.
TimerActiveTaskWorkflowBackoffTimerScope
// TimerActiveTaskDeleteHistoryEventScope is the scope used by metric emitted by timer queue processor for processing history event cleanup
TimerActiveTaskDeleteHistoryEventScope
// TimerStandbyTaskActivityTimeoutScope is the scope used by metric emitted by timer queue processor for processing activity timeouts
TimerStandbyTaskActivityTimeoutScope
// TimerStandbyTaskDecisionTimeoutScope is the scope used by metric emitted by timer queue processor for processing decision timeouts
TimerStandbyTaskDecisionTimeoutScope
// TimerStandbyTaskUserTimerScope is the scope used by metric emitted by timer queue processor for processing user timers
TimerStandbyTaskUserTimerScope
// TimerStandbyTaskWorkflowTimeoutScope is the scope used by metric emitted by timer queue processor for processing workflow timeouts.
TimerStandbyTaskWorkflowTimeoutScope
// TimerStandbyTaskActivityRetryTimerScope is the scope used by metric emitted by timer queue processor for processing retry task.
TimerStandbyTaskActivityRetryTimerScope
// TimerStandbyTaskDeleteHistoryEventScope is the scope used by metric emitted by timer queue processor for processing history event cleanup
TimerStandbyTaskDeleteHistoryEventScope
// TimerStandbyTaskWorkflowBackoffTimerScope is the scope used by metric emitted by timer queue processor for processing retry task.
TimerStandbyTaskWorkflowBackoffTimerScope
// HistoryEventNotificationScope is the scope used by shard history event nitification
HistoryEventNotificationScope
// ReplicatorQueueProcessorScope is the scope used by all metric emitted by replicator queue processor
ReplicatorQueueProcessorScope
// ReplicatorTaskHistoryScope is the scope used for history task processing by replicator queue processor
ReplicatorTaskHistoryScope
// ReplicatorTaskSyncActivityScope is the scope used for sync activity by replicator queue processor
ReplicatorTaskSyncActivityScope
// ReplicateHistoryEventsScope is the scope used by historyReplicator API for applying events
ReplicateHistoryEventsScope
// ShardInfoScope is the scope used when updating shard info
ShardInfoScope
// WorkflowContextScope is the scope used by WorkflowContext component
WorkflowContextScope
// HistoryCacheGetAndCreateScope is the scope used by history cache
HistoryCacheGetAndCreateScope
// HistoryCacheGetOrCreateScope is the scope used by history cache
HistoryCacheGetOrCreateScope
// HistoryCacheGetCurrentExecutionScope is the scope used by history cache for getting current execution
HistoryCacheGetCurrentExecutionScope
// EventsCacheGetEventScope is the scope used by events cache
EventsCacheGetEventScope
// EventsCachePutEventScope is the scope used by events cache
EventsCachePutEventScope
// EventsCacheDeleteEventScope is the scope used by events cache
EventsCacheDeleteEventScope
// EventsCacheGetFromStoreScope is the scope used by events cache
EventsCacheGetFromStoreScope
// ExecutionSizeStatsScope is the scope used for emiting workflow execution size related stats
ExecutionSizeStatsScope
// ExecutionCountStatsScope is the scope used for emiting workflow execution count related stats
ExecutionCountStatsScope
// SessionSizeStatsScope is the scope used for emiting session update size related stats
SessionSizeStatsScope
// SessionCountStatsScope is the scope used for emiting session update count related stats
SessionCountStatsScope
// HistoryResetWorkflowExecutionScope tracks ResetWorkflowExecution API calls received by service
HistoryResetWorkflowExecutionScope
// HistoryProcessDeleteHistoryEventScope tracks ProcessDeleteHistoryEvent processing calls
HistoryProcessDeleteHistoryEventScope
// WorkflowCompletionStatsScope tracks workflow completion updates
WorkflowCompletionStatsScope
// ArchiverClientScope is scope used by all metrics emitted by archiver.Client
ArchiverClientScope
NumHistoryScopes
)
// -- Operation scopes for Matching service --
const (
// PollForDecisionTaskScope tracks PollForDecisionTask API calls received by service
MatchingPollForDecisionTaskScope = iota + NumCommonScopes
// PollForActivityTaskScope tracks PollForActivityTask API calls received by service
MatchingPollForActivityTaskScope
// MatchingAddActivityTaskScope tracks AddActivityTask API calls received by service
MatchingAddActivityTaskScope
// MatchingAddDecisionTaskScope tracks AddDecisionTask API calls received by service
MatchingAddDecisionTaskScope
// MatchingTaskListMgrScope is the metrics scope for matching.TaskListManager component
MatchingTaskListMgrScope
// MatchingQueryWorkflowScope tracks AddDecisionTask API calls received by service
MatchingQueryWorkflowScope
// MatchingRespondQueryTaskCompletedScope tracks AddDecisionTask API calls received by service
MatchingRespondQueryTaskCompletedScope
// MatchingCancelOutstandingPollScope tracks CancelOutstandingPoll API calls received by service
MatchingCancelOutstandingPollScope
// MatchingDescribeTaskListScope tracks DescribeTaskList API calls received by service
MatchingDescribeTaskListScope
NumMatchingScopes
)
// -- Operation scopes for Worker service --
const (
// ReplicationScope is the scope used by all metric emitted by replicator
ReplicatorScope = iota + NumCommonScopes
// DomainReplicationTaskScope is the scope used by domain task replication processing
DomainReplicationTaskScope
// HistoryReplicationTaskScope is the scope used by history task replication processing
HistoryReplicationTaskScope
// HistoryMetadataReplicationTaskScope is the scope used by history metadata task replication processing
HistoryMetadataReplicationTaskScope
// SyncShardTaskScope is the scope used by sync shrad information processing
SyncShardTaskScope
// SyncActivityTaskScope is the scope used by sync activity information processing
SyncActivityTaskScope
// ESProcessorScope is scope used by all metric emitted by esProcessor
ESProcessorScope
// IndexProcessorScope is scope used by all metric emitted by index processor
IndexProcessorScope
// ArchiverUploadHistoryActivityScope is scope used by all metrics emitted by archiver.UploadHistoryActivity
ArchiverUploadHistoryActivityScope
// ArchiverDeleteHistoryActivityScope is scope used by all metrics emitted by archiver.DeleteHistoryActivity
ArchiverDeleteHistoryActivityScope
// ArchiverScope is scope used by all metrics emitted by archiver.Archiver
ArchiverScope
// ArchiverPumpScope is scope used by all metrics emitted by archiver.Pump
ArchiverPumpScope
// ArchiverArchivalWorkflowScope is scope used by all metrics emitted by archiver.ArchivalWorkflow
ArchiverArchivalWorkflowScope
// TaskListScavengerScope is scope used by all metrics emitted by worker.tasklist.Scavenger module
TaskListScavengerScope
NumWorkerScopes
)
// Operation scopes for Blobstore
const (
// BlobstoreUploadScope tracks Upload API calls received by blobstore
BlobstoreUploadScope = iota + NumCommonScopes
// BlobstoreDownloadScope tracks Download API calls received by blobstore
BlobstoreDownloadScope
// BlobstoreGetTagsScope tracks GetTags API calls received by blobstore
BlobstoreGetTagsScope
// BlobstoreExistsScope tracks Exists API calls received by blobstore
BlobstoreExistsScope
// BlobstoreDeleteScope tracks Delete API calls received by blobstore
BlobstoreDeleteScope
// BlobstoreListByPrefixScope tracks ListByPrefix API calls received by blobstore
BlobstoreListByPrefixScope
// BlobstoreBucketMetadataScope tracks BucketMetadata API calls received by blobstore
BlobstoreBucketMetadataScope
NumBlobstoreScopes
)
// ScopeDefs record the scopes for all services
var ScopeDefs = map[ServiceIdx]map[int]scopeDefinition{
// common scope Names
Common: {
PersistenceCreateShardScope: {operation: "CreateShard"},
PersistenceGetShardScope: {operation: "GetShard"},
PersistenceUpdateShardScope: {operation: "UpdateShard"},
PersistenceCreateWorkflowExecutionScope: {operation: "CreateWorkflowExecution"},
PersistenceGetWorkflowExecutionScope: {operation: "GetWorkflowExecution"},
PersistenceUpdateWorkflowExecutionScope: {operation: "UpdateWorkflowExecution"},
PersistenceResetMutableStateScope: {operation: "ResetMutableState"},
PersistenceResetWorkflowExecutionScope: {operation: "ResetWorkflowExecution"},
PersistenceDeleteWorkflowExecutionScope: {operation: "DeleteWorkflowExecution"},
PersistenceDeleteCurrentWorkflowExecutionScope: {operation: "DeleteCurrentWorkflowExecution"},
PersistenceGetCurrentExecutionScope: {operation: "GetCurrentExecution"},
PersistenceGetTransferTasksScope: {operation: "GetTransferTasks"},
PersistenceGetReplicationTasksScope: {operation: "GetReplicationTasks"},
PersistenceCompleteTransferTaskScope: {operation: "CompleteTransferTask"},
PersistenceRangeCompleteTransferTaskScope: {operation: "RangeCompleteTransferTask"},
PersistenceCompleteReplicationTaskScope: {operation: "CompleteReplicationTask"},
PersistenceGetTimerIndexTasksScope: {operation: "GetTimerIndexTasks"},
PersistenceCompleteTimerTaskScope: {operation: "CompleteTimerTask"},
PersistenceRangeCompleteTimerTaskScope: {operation: "RangeCompleteTimerTask"},
PersistenceCreateTaskScope: {operation: "CreateTask"},
PersistenceGetTasksScope: {operation: "GetTasks"},
PersistenceCompleteTaskScope: {operation: "CompleteTask"},
PersistenceCompleteTasksLessThanScope: {operation: "CompleteTasksLessThan"},
PersistenceLeaseTaskListScope: {operation: "LeaseTaskList"},
PersistenceUpdateTaskListScope: {operation: "UpdateTaskList"},
PersistenceListTaskListScope: {operation: "ListTaskList"},
PersistenceDeleteTaskListScope: {operation: "DeleteTaskList"},
PersistenceAppendHistoryEventsScope: {operation: "AppendHistoryEvents"},
PersistenceGetWorkflowExecutionHistoryScope: {operation: "GetWorkflowExecutionHistory"},
PersistenceDeleteWorkflowExecutionHistoryScope: {operation: "DeleteWorkflowExecutionHistory"},
PersistenceCreateDomainScope: {operation: "CreateDomain"},
PersistenceGetDomainScope: {operation: "GetDomain"},
PersistenceUpdateDomainScope: {operation: "UpdateDomain"},
PersistenceDeleteDomainScope: {operation: "DeleteDomain"},
PersistenceDeleteDomainByNameScope: {operation: "DeleteDomainByName"},
PersistenceListDomainScope: {operation: "ListDomain"},
PersistenceGetMetadataScope: {operation: "GetMetadata"},
PersistenceRecordWorkflowExecutionStartedScope: {operation: "RecordWorkflowExecutionStarted"},
PersistenceRecordWorkflowExecutionClosedScope: {operation: "RecordWorkflowExecutionClosed"},
PersistenceListOpenWorkflowExecutionsScope: {operation: "ListOpenWorkflowExecutions"},
PersistenceListClosedWorkflowExecutionsScope: {operation: "ListClosedWorkflowExecutions"},
PersistenceListOpenWorkflowExecutionsByTypeScope: {operation: "ListOpenWorkflowExecutionsByType"},
PersistenceListClosedWorkflowExecutionsByTypeScope: {operation: "ListClosedWorkflowExecutionsByType"},
PersistenceListOpenWorkflowExecutionsByWorkflowIDScope: {operation: "ListOpenWorkflowExecutionsByWorkflowID"},
PersistenceListClosedWorkflowExecutionsByWorkflowIDScope: {operation: "ListClosedWorkflowExecutionsByWorkflowID"},
PersistenceListClosedWorkflowExecutionsByStatusScope: {operation: "ListClosedWorkflowExecutionsByStatus"},
PersistenceGetClosedWorkflowExecutionScope: {operation: "GetClosedWorkflowExecution"},
PersistenceVisibilityDeleteWorkflowExecutionScope: {operation: "VisibilityDeleteWorkflowExecution"},
PersistenceListWorkflowExecutionsScope: {operation: "ListWorkflowExecutions"},
PersistenceScanWorkflowExecutionsScope: {operation: "ScanWorkflowExecutions"},
PersistenceCountWorkflowExecutionsScope: {operation: "CountWorkflowExecutions"},
PersistenceAppendHistoryNodesScope: {operation: "AppendHistoryNodes"},
PersistenceReadHistoryBranchScope: {operation: "ReadHistoryBranch"},
PersistenceForkHistoryBranchScope: {operation: "ForkHistoryBranch"},
PersistenceDeleteHistoryBranchScope: {operation: "DeleteHistoryBranch"},
PersistenceCompleteForkBranchScope: {operation: "CompleteForkBranch"},
PersistenceGetHistoryTreeScope: {operation: "GetHistoryTree"},
BlobstoreClientUploadScope: {operation: "BlobstoreClientUpload", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientDownloadScope: {operation: "BlobstoreClientDownload", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientGetTagsScope: {operation: "BlobstoreClientGetTags", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientExistsScope: {operation: "BlobstoreClientExists", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientDeleteScope: {operation: "BlobstoreClientDelete", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientListByPrefixScope: {operation: "BlobstoreClientListByPrefix", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientBucketMetadataScope: {operation: "BlobstoreClientBucketMetadata", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
BlobstoreClientBucketExistsScope: {operation: "BlobstoreClientBucketExists", tags: map[string]string{CadenceRoleTagName: BlobstoreRoleTagValue}},
ClusterMetadataArchivalConfigScope: {operation: "ArchivalConfig"},
HistoryClientStartWorkflowExecutionScope: {operation: "HistoryClientStartWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRecordActivityTaskHeartbeatScope: {operation: "HistoryClientRecordActivityTaskHeartbeat", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRespondDecisionTaskCompletedScope: {operation: "HistoryClientRespondDecisionTaskCompleted", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRespondDecisionTaskFailedScope: {operation: "HistoryClientRespondDecisionTaskFailed", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRespondActivityTaskCompletedScope: {operation: "HistoryClientRespondActivityTaskCompleted", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRespondActivityTaskFailedScope: {operation: "HistoryClientRespondActivityTaskFailed", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRespondActivityTaskCanceledScope: {operation: "HistoryClientRespondActivityTaskCanceled", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientGetMutableStateScope: {operation: "HistoryClientGetMutableState", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientResetStickyTaskListScope: {operation: "HistoryClientResetStickyTaskListScope", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientDescribeWorkflowExecutionScope: {operation: "HistoryClientDescribeWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRecordDecisionTaskStartedScope: {operation: "HistoryClientRecordDecisionTaskStarted", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRecordActivityTaskStartedScope: {operation: "HistoryClientRecordActivityTaskStarted", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRequestCancelWorkflowExecutionScope: {operation: "HistoryClientRequestCancelWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientSignalWorkflowExecutionScope: {operation: "HistoryClientSignalWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientSignalWithStartWorkflowExecutionScope: {operation: "HistoryClientSignalWithStartWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRemoveSignalMutableStateScope: {operation: "HistoryClientRemoveSignalMutableStateScope", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientTerminateWorkflowExecutionScope: {operation: "HistoryClientTerminateWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientResetWorkflowExecutionScope: {operation: "HistoryClientResetWorkflowExecution", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientScheduleDecisionTaskScope: {operation: "HistoryClientScheduleDecisionTask", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientRecordChildExecutionCompletedScope: {operation: "HistoryClientRecordChildExecutionCompleted", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientReplicateEventsScope: {operation: "HistoryClientReplicateEvents", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientReplicateRawEventsScope: {operation: "HistoryClientReplicateRawEvents", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientSyncShardStatusScope: {operation: "HistoryClientSyncShardStatusScope", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
HistoryClientSyncActivityScope: {operation: "HistoryClientSyncActivityScope", tags: map[string]string{CadenceRoleTagName: HistoryRoleTagValue}},
MatchingClientPollForDecisionTaskScope: {operation: "MatchingClientPollForDecisionTask", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientPollForActivityTaskScope: {operation: "MatchingClientPollForActivityTask", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientAddActivityTaskScope: {operation: "MatchingClientAddActivityTask", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientAddDecisionTaskScope: {operation: "MatchingClientAddDecisionTask", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientQueryWorkflowScope: {operation: "MatchingClientQueryWorkflow", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientRespondQueryTaskCompletedScope: {operation: "MatchingClientRespondQueryTaskCompleted", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientCancelOutstandingPollScope: {operation: "MatchingClientCancelOutstandingPoll", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
MatchingClientDescribeTaskListScope: {operation: "MatchingClientDescribeTaskList", tags: map[string]string{CadenceRoleTagName: MatchingRoleTagValue}},
FrontendClientDeprecateDomainScope: {operation: "FrontendClientDeprecateDomain", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientDescribeDomainScope: {operation: "FrontendClientDescribeDomain", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientDescribeTaskListScope: {operation: "FrontendClientDescribeTaskList", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientDescribeWorkflowExecutionScope: {operation: "FrontendClientDescribeWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientGetWorkflowExecutionHistoryScope: {operation: "FrontendClientGetWorkflowExecutionHistory", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientListClosedWorkflowExecutionsScope: {operation: "FrontendClientListClosedWorkflowExecutions", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientListDomainsScope: {operation: "FrontendClientListDomains", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientListOpenWorkflowExecutionsScope: {operation: "FrontendClientListOpenWorkflowExecutions", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientPollForActivityTaskScope: {operation: "FrontendClientPollForActivityTask", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientPollForDecisionTaskScope: {operation: "FrontendClientPollForDecisionTask", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientQueryWorkflowScope: {operation: "FrontendClientQueryWorkflow", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRecordActivityTaskHeartbeatScope: {operation: "FrontendClientRecordActivityTaskHeartbeat", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRecordActivityTaskHeartbeatByIDScope: {operation: "FrontendClientRecordActivityTaskHeartbeatByID", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRegisterDomainScope: {operation: "FrontendClientRegisterDomain", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRequestCancelWorkflowExecutionScope: {operation: "FrontendClientRequestCancelWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientResetStickyTaskListScope: {operation: "FrontendClientResetStickyTaskList", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientResetWorkflowExecutionScope: {operation: "FrontendClientResetWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondActivityTaskCanceledScope: {operation: "FrontendClientRespondActivityTaskCanceled", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondActivityTaskCanceledByIDScope: {operation: "FrontendClientRespondActivityTaskCanceledByID", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondActivityTaskCompletedScope: {operation: "FrontendClientRespondActivityTaskCompleted", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondActivityTaskCompletedByIDScope: {operation: "FrontendClientRespondActivityTaskCompletedByID", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondActivityTaskFailedScope: {operation: "FrontendClientRespondActivityTaskFailed", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondActivityTaskFailedByIDScope: {operation: "FrontendClientRespondActivityTaskFailedByID", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondDecisionTaskCompletedScope: {operation: "FrontendClientRespondDecisionTaskCompleted", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondDecisionTaskFailedScope: {operation: "FrontendClientRespondDecisionTaskFailed", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientRespondQueryTaskCompletedScope: {operation: "FrontendClientRespondQueryTaskCompleted", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientSignalWithStartWorkflowExecutionScope: {operation: "FrontendClientSignalWithStartWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientSignalWorkflowExecutionScope: {operation: "FrontendClientSignalWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientStartWorkflowExecutionScope: {operation: "FrontendClientStartWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientTerminateWorkflowExecutionScope: {operation: "FrontendClientTerminateWorkflowExecution", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
FrontendClientUpdateDomainScope: {operation: "FrontendClientUpdateDomain", tags: map[string]string{CadenceRoleTagName: FrontendRoleTagValue}},
AdminClientDescribeHistoryHostScope: {operation: "AdminClientDescribeHistoryHost", tags: map[string]string{CadenceRoleTagName: AdminRoleTagValue}},
AdminClientDescribeWorkflowExecutionScope: {operation: "AdminClientDescribeWorkflowExecution", tags: map[string]string{CadenceRoleTagName: AdminRoleTagValue}},
AdminClientGetWorkflowExecutionRawHistoryScope: {operation: "AdminClientGetWorkflowExecutionRawHistory", tags: map[string]string{CadenceRoleTagName: AdminRoleTagValue}},
MessagingClientPublishScope: {operation: "MessagingClientPublish"},
MessagingClientPublishBatchScope: {operation: "MessagingClientPublishBatch"},
DomainCacheScope: {operation: "DomainCache"},
HistoryRereplicationByTransferTaskScope: {operation: "HistoryRereplicationByTransferTask"},
HistoryRereplicationByTimerTaskScope: {operation: "HistoryRereplicationByTimerTask"},
HistoryRereplicationByHistoryReplicationScope: {operation: "HistoryRereplicationByHistoryReplication"},
HistoryRereplicationByHistoryMetadataReplicationScope: {operation: "HistoryRereplicationByHistoryMetadataReplication"},
HistoryRereplicationByActivityReplicationScope: {operation: "HistoryRereplicationByActivityReplication"},
ElasticsearchRecordWorkflowExecutionStartedScope: {operation: "RecordWorkflowExecutionStarted"},
ElasticsearchRecordWorkflowExecutionClosedScope: {operation: "RecordWorkflowExecutionClosed"},
ElasticsearchListOpenWorkflowExecutionsScope: {operation: "ListOpenWorkflowExecutions"},
ElasticsearchListClosedWorkflowExecutionsScope: {operation: "ListClosedWorkflowExecutions"},
ElasticsearchListOpenWorkflowExecutionsByTypeScope: {operation: "ListOpenWorkflowExecutionsByType"},
ElasticsearchListClosedWorkflowExecutionsByTypeScope: {operation: "ListClosedWorkflowExecutionsByType"},
ElasticsearchListOpenWorkflowExecutionsByWorkflowIDScope: {operation: "ListOpenWorkflowExecutionsByWorkflowID"},
ElasticsearchListClosedWorkflowExecutionsByWorkflowIDScope: {operation: "ListClosedWorkflowExecutionsByWorkflowID"},
ElasticsearchListClosedWorkflowExecutionsByStatusScope: {operation: "ListClosedWorkflowExecutionsByStatus"},
ElasticsearchGetClosedWorkflowExecutionScope: {operation: "GetClosedWorkflowExecution"},
ElasticsearchListWorkflowExecutionsScope: {operation: "ListWorkflowExecutions"},
ElasticsearchScanWorkflowExecutionsScope: {operation: "ScanWorkflowExecutions"},
ElasticsearchCountWorkflowExecutionsScope: {operation: "CountWorkflowExecutions"},
SequentialTaskProcessingScope: {operation: "SequentialTaskProcessing"},
},
// Frontend Scope Names
Frontend: {
// Admin API scope co-locates with with frontend
AdminDescribeHistoryHostScope: {operation: "DescribeHistoryHost"},
AdminDescribeWorkflowExecutionScope: {operation: "DescribeWorkflowExecution"},
AdminGetWorkflowExecutionRawHistoryScope: {operation: "GetWorkflowExecutionRawHistory"},
FrontendStartWorkflowExecutionScope: {operation: "StartWorkflowExecution"},
FrontendPollForDecisionTaskScope: {operation: "PollForDecisionTask"},
FrontendPollForActivityTaskScope: {operation: "PollForActivityTask"},
FrontendRecordActivityTaskHeartbeatScope: {operation: "RecordActivityTaskHeartbeat"},
FrontendRecordActivityTaskHeartbeatByIDScope: {operation: "RecordActivityTaskHeartbeatByID"},
FrontendRespondDecisionTaskCompletedScope: {operation: "RespondDecisionTaskCompleted"},
FrontendRespondDecisionTaskFailedScope: {operation: "RespondDecisionTaskFailed"},
FrontendRespondQueryTaskCompletedScope: {operation: "RespondQueryTaskCompleted"},
FrontendRespondActivityTaskCompletedScope: {operation: "RespondActivityTaskCompleted"},
FrontendRespondActivityTaskFailedScope: {operation: "RespondActivityTaskFailed"},
FrontendRespondActivityTaskCanceledScope: {operation: "RespondActivityTaskCanceled"},
FrontendRespondActivityTaskCompletedByIDScope: {operation: "RespondActivityTaskCompletedByID"},
FrontendRespondActivityTaskFailedByIDScope: {operation: "RespondActivityTaskFailedByID"},
FrontendRespondActivityTaskCanceledByIDScope: {operation: "RespondActivityTaskCanceledByID"},
FrontendGetWorkflowExecutionHistoryScope: {operation: "GetWorkflowExecutionHistory"},
FrontendSignalWorkflowExecutionScope: {operation: "SignalWorkflowExecution"},
FrontendSignalWithStartWorkflowExecutionScope: {operation: "SignalWithStartWorkflowExecution"},
FrontendTerminateWorkflowExecutionScope: {operation: "TerminateWorkflowExecution"},
FrontendResetWorkflowExecutionScope: {operation: "ResetWorkflowExecution"},
FrontendRequestCancelWorkflowExecutionScope: {operation: "RequestCancelWorkflowExecution"},
FrontendListOpenWorkflowExecutionsScope: {operation: "ListOpenWorkflowExecutions"},
FrontendListClosedWorkflowExecutionsScope: {operation: "ListClosedWorkflowExecutions"},
FrontendListWorkflowExecutionsScope: {operation: "ListWorkflowExecutions"},
FrontendScanWorkflowExecutionsScope: {operation: "ScanWorkflowExecutions"},
FrontendCountWorkflowExecutionsScope: {operation: "CountWorkflowExecutions"},
FrontendRegisterDomainScope: {operation: "RegisterDomain"},
FrontendDescribeDomainScope: {operation: "DescribeDomain"},
FrontendListDomainsScope: {operation: "ListDomain"},
FrontendUpdateDomainScope: {operation: "UpdateDomain"},
FrontendDeprecateDomainScope: {operation: "DeprecateDomain"},
FrontendQueryWorkflowScope: {operation: "QueryWorkflow"},
FrontendDescribeWorkflowExecutionScope: {operation: "DescribeWorkflowExecution"},
FrontendDescribeTaskListScope: {operation: "DescribeTaskList"},
FrontendResetStickyTaskListScope: {operation: "ResetStickyTaskList"},
},
// History Scope Names
History: {
HistoryStartWorkflowExecutionScope: {operation: "StartWorkflowExecution"},
HistoryRecordActivityTaskHeartbeatScope: {operation: "RecordActivityTaskHeartbeat"},
HistoryRespondDecisionTaskCompletedScope: {operation: "RespondDecisionTaskCompleted"},
HistoryRespondDecisionTaskFailedScope: {operation: "RespondDecisionTaskFailed"},
HistoryRespondActivityTaskCompletedScope: {operation: "RespondActivityTaskCompleted"},
HistoryRespondActivityTaskFailedScope: {operation: "RespondActivityTaskFailed"},
HistoryRespondActivityTaskCanceledScope: {operation: "RespondActivityTaskCanceled"},
HistoryGetMutableStateScope: {operation: "GetMutableState"},
HistoryResetStickyTaskListScope: {operation: "ResetStickyTaskListScope"},
HistoryDescribeWorkflowExecutionScope: {operation: "DescribeWorkflowExecution"},