-
Notifications
You must be signed in to change notification settings - Fork 178
/
constants.go
197 lines (166 loc) · 10.4 KB
/
constants.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
package trace
// Span names
const (
// Protocol State
//
// Extend
ProtoStateMutatorExtend SpanName = "proto.state.mutator.extend"
ProtoStateMutatorExtendCheckHeader SpanName = "proto.state.mutator.extend.checkHeader"
ProtoStateMutatorExtendCheckGuarantees SpanName = "proto.state.mutator.extend.checkGuarantees"
ProtoStateMutatorExtendCheckSeals SpanName = "proto.state.mutator.extend.checkSeals"
ProtoStateMutatorExtendCheckReceipts SpanName = "proto.state.mutator.extend.checkReceipts"
ProtoStateMutatorExtendDBInsert SpanName = "proto.state.mutator.extend.dbInsert"
// HeaderExtend
ProtoStateMutatorHeaderExtend SpanName = "proto.state.mutator.headerExtend"
ProtoStateMutatorHeaderExtendGetLastSealed SpanName = "proto.state.mutator.headerExtend.lastSealed"
// mutator.Finalize
ProtoStateMutatorFinalize SpanName = "proto.state.mutator.finalize"
// Consensus
//
// Builder
CONBuilderBuildOn SpanName = "con.builder.buildOn"
// Finalizer
CONFinalizerFinalizeBlock SpanName = "con.finalizer.finalizeBlock"
// Ingestion
CONIngOnCollectionGuarantee SpanName = "con.ingestion.onCollectionGuarantee"
// Provider
// Compliance
CONCompOnBlockProposal SpanName = "con.compliance.onBlockProposal"
ConCompProcessBlockProposal SpanName = "con.compliance.processBlockProposal"
CONCompOnBlockVote SpanName = "con.compliance.onBlockVote"
// Matching
CONMatchProcessReceipt SpanName = "con.matching.processReceipt"
CONMatchProcessReceiptVal SpanName = "con.matching.processReceipt.validation"
// Sealing
CONSealingProcessFinalizedBlock SpanName = "con.sealing.processFinalizedBlock"
CONSealingCheckForEmergencySealableBlocks SpanName = "con.sealing.processFinalizedBlock.checkEmergencySealing"
CONSealingPruning SpanName = "con.sealing.processFinalizedBlock.pruning"
CONSealingRequestingPendingApproval SpanName = "con.sealing.processFinalizedBlock.requestPendingApprovals"
CONSealingProcessIncorporatedResult SpanName = "con.sealing.processIncorporatedResult"
CONSealingProcessApproval SpanName = "con.sealing.processApproval"
// Follower Core
FollowerProcessFinalizedBlock SpanName = "follower.processFinalizedBlock"
FollowerProcessCertifiedBlocks SpanName = "follower.processCertifiedBlocks"
FollowerExtendPendingTree SpanName = "follower.extendPendingTree"
FollowerExtendProtocolState SpanName = "follower.extendProtocolState"
// Collection Node
//
// Builder
COLBuildOn SpanName = "col.builder"
COLBuildOnGetBuildCtx SpanName = "col.builder.getBuildCtx"
COLBuildOnUnfinalizedLookup SpanName = "col.builder.unfinalizedLookup"
COLBuildOnFinalizedLookup SpanName = "col.builder.finalizedLookup"
COLBuildOnCreatePayload SpanName = "col.builder.createPayload"
COLBuildOnCreateHeader SpanName = "col.builder.createHeader"
COLBuildOnDBInsert SpanName = "col.builder.dbInsert"
// Cluster State
COLClusterStateMutatorExtend SpanName = "col.state.mutator.extend"
COLClusterStateMutatorExtendCheckHeader SpanName = "col.state.mutator.extend.checkHeader"
COLClusterStateMutatorExtendGetExtendCtx SpanName = "col.state.mutator.extend.getExtendCtx"
COLClusterStateMutatorExtendCheckAncestry SpanName = "col.state.mutator.extend.checkAncestry"
COLClusterStateMutatorExtendCheckReferenceBlock SpanName = "col.state.mutator.extend.checkRefBlock"
COLClusterStateMutatorExtendCheckTransactionsValid SpanName = "col.state.mutator.extend.checkTransactionsValid"
COLClusterStateMutatorExtendDBInsert SpanName = "col.state.mutator.extend.dbInsert"
// Execution Node
//
EXEHandleBlock SpanName = "exe.ingestion.handleBlock"
EXEHandleCollection SpanName = "exe.ingestion.handleCollection"
EXEExecuteBlock SpanName = "exe.ingestion.executeBlock"
EXESaveExecutionResults SpanName = "exe.ingestion.saveExecutionResults"
EXEUploadCollections SpanName = "exe.manager.uploadCollections"
EXEAddToExecutionDataService SpanName = "exe.manager.addToExecutionDataService"
EXEBroadcastExecutionReceipt SpanName = "exe.provider.broadcastExecutionReceipt"
EXEComputeBlock SpanName = "exe.computer.computeBlock"
EXEComputeTransaction SpanName = "exe.computer.computeTransaction"
EXEStateSaveExecutionResults SpanName = "exe.state.saveExecutionResults"
EXECommitDelta SpanName = "exe.state.commitDelta"
EXEGetExecutionResultID SpanName = "exe.state.getExecutionResultID"
EXEUpdateHighestExecutedBlockIfHigher SpanName = "exe.state.updateHighestExecutedBlockIfHigher"
// Verification node
//
// assigner engine
VERProcessFinalizedBlock SpanName = "ver.processFinalizedBlock"
// children of VERProcessFinalizedBlock
VERAssignerHandleFinalizedBlock SpanName = "ver.assigner.handleFinalizedBlock"
VERAssignerHandleExecutionReceipt SpanName = "ver.assigner.handleExecutionReceipt"
VERAssignerChunkAssignment SpanName = "ver.assigner.chunkAssignment"
VERAssignerProcessChunk SpanName = "ver.assigner.processChunk"
// fetcher engine
VERProcessAssignedChunk SpanName = "ver.processAssignedChunk"
// children of VERProcessAssignedChunk
VERFetcherHandleAssignedChunk SpanName = "ver.fetcher.handleAssignedChunk"
VERFetcherHandleChunkDataPack SpanName = "ver.fetcher.handleChunkDataPack"
VERFetcherValidateChunkDataPack SpanName = "ver.fetcher.validateChunkDataPack"
VERFetcherPushToVerifier SpanName = "ver.fetcher.pushToVerifier"
// requester engine
VERProcessChunkDataPackRequest SpanName = "ver.processChunkDataPackRequest"
// children of VERProcessChunkDataPackRequest
VERRequesterHandleChunkDataRequest SpanName = "ver.requester.handleChunkDataRequest"
VERRequesterHandleChunkDataResponse SpanName = "ver.requester.handleChunkDataResponse"
VERRequesterDispatchChunkDataRequest SpanName = "ver.requester.dispatchChunkDataRequest"
VERProcessExecutionReceipt SpanName = "ver.processExecutionReceipt"
// children of VERProcessExecutionReceipt
VERFindHandleExecutionReceipt SpanName = "ver.find.handleExecutionReceipt"
VERFindOnFinalizedBlock SpanName = "ver.finder.OnFinalizedBlock"
VERFindCheckCachedReceipts SpanName = "ver.finder.checkCachedReceipts"
VERFindCheckPendingReceipts SpanName = "ver.finder.checkPendingReceipts"
VERFindCheckReadyReceipts SpanName = "ver.finder.checkReadyReceipts"
VERFindProcessResult SpanName = "ver.finder.processResult"
VERFindOnResultProcessed SpanName = "ver.finder.onResultProcessed"
VERProcessExecutionResult SpanName = "ver.processExecutionResult"
// children of VERProcessExecutionResult
VERMatchHandleExecutionResult SpanName = "ver.match.handleExecutionResult"
VERMatchHandleChunkDataPack SpanName = "ver.match.handleChunkDataPack"
VERMatchMyChunkAssignments SpanName = "ver.match.myChunkAssignments"
VERVerVerifyWithMetrics SpanName = "ver.verify.verifyWithMetrics"
VERVerChunkVerify SpanName = "ver.verify.ChunkVerifier.Verify"
VERVerGenerateResultApproval SpanName = "ver.verify.GenerateResultApproval"
// Flow Virtual Machine
FVMVerifyTransaction SpanName = "fvm.verifyTransaction"
FVMSeqNumCheckTransaction SpanName = "fvm.seqNumCheckTransaction"
FVMExecuteTransaction SpanName = "fvm.executeTransaction"
FVMDeductTransactionFees SpanName = "fvm.deductTransactionFees"
FVMTransactionStorageUsedCheck SpanName = "fvm.env.transactionStorageUsedCheck"
FVMInvokeContractFunction SpanName = "fvm.invokeContractFunction"
FVMEnvValueExists SpanName = "fvm.env.valueExists"
FVMEnvGetValue SpanName = "fvm.env.getValue"
FVMEnvSetValue SpanName = "fvm.env.setValue"
FVMEnvAllocateStorageIndex SpanName = "fvm.env.allocateStorageIndex"
FVMEnvGetAccount SpanName = "fvm.env.getAccount"
FVMEnvGetStorageUsed SpanName = "fvm.env.getStorageUsed"
FVMEnvGetStorageCapacity SpanName = "fvm.env.getStorageCapacity"
FVMEnvGetAccountBalance SpanName = "fvm.env.getAccountBalance"
FVMEnvGetAccountAvailableBalance SpanName = "fvm.env.getAccountAvailableBalance"
FVMEnvResolveLocation SpanName = "fvm.env.resolveLocation"
FVMEnvGetCode SpanName = "fvm.env.getCode"
FVMEnvGetAccountContractNames SpanName = "fvm.env.getAccountContractNames"
FVMEnvGetOrLoadProgram SpanName = "fvm.env.getOrLoadCachedProgram"
FVMEnvProgramLog SpanName = "fvm.env.programLog"
FVMEnvEmitEvent SpanName = "fvm.env.emitEvent"
FVMEnvEncodeEvent SpanName = "fvm.env.encodeEvent"
FVMEnvGenerateUUID SpanName = "fvm.env.generateUUID"
FVMEnvGenerateAccountLocalID SpanName = "fvm.env.generateAccountLocalID"
FVMEnvDecodeArgument SpanName = "fvm.env.decodeArgument"
FVMEnvHash SpanName = "fvm.env.Hash"
FVMEnvVerifySignature SpanName = "fvm.env.verifySignature"
FVMEnvValidatePublicKey SpanName = "fvm.env.validatePublicKey"
FVMEnvBLSVerifyPOP SpanName = "fvm.env.blsVerifyPOP"
FVMEnvBLSAggregateSignatures SpanName = "fvm.env.blsAggregateSignatures"
FVMEnvBLSAggregatePublicKeys SpanName = "fvm.env.blsAggregatePublicKeys"
FVMEnvGetCurrentBlockHeight SpanName = "fvm.env.getCurrentBlockHeight"
FVMEnvGetBlockAtHeight SpanName = "fvm.env.getBlockAtHeight"
FVMEnvRandom SpanName = "fvm.env.unsafeRandom"
FVMEnvRandomSourceHistoryProvider SpanName = "fvm.env.randomSourceHistoryProvider"
FVMEnvCreateAccount SpanName = "fvm.env.createAccount"
FVMEnvAddAccountKey SpanName = "fvm.env.addAccountKey"
FVMEnvAddEncodedAccountKey SpanName = "fvm.env.addEncodedAccountKey"
FVMEnvAccountKeysCount SpanName = "fvm.env.accountKeysCount"
FVMEnvGetAccountKey SpanName = "fvm.env.getAccountKey"
FVMEnvRevokeAccountKey SpanName = "fvm.env.revokeAccountKey"
FVMEnvRevokeEncodedAccountKey SpanName = "fvm.env.revokeEncodedAccountKey"
FVMEnvUpdateAccountContractCode SpanName = "fvm.env.updateAccountContractCode"
FVMEnvGetAccountContractCode SpanName = "fvm.env.getAccountContractCode"
FVMEnvRemoveAccountContractCode SpanName = "fvm.env.removeAccountContractCode"
FVMEnvGetSigningAccounts SpanName = "fvm.env.getSigningAccounts"
FVMCadenceTrace SpanName = "fvm.cadence.trace"
)