-
Notifications
You must be signed in to change notification settings - Fork 178
/
constants.go
211 lines (180 loc) · 11.3 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
package trace
// Span names
const (
// Common
//
// State
// mutator.Extend - full payload check
ProtoStateMutatorExtend SpanName = "common.state.proto.mutator.extend"
ProtoStateMutatorExtendCheckHeader SpanName = "common.state.proto.mutator.extend.checkHeader"
ProtoStateMutatorExtendCheckGuarantees SpanName = "common.state.proto.mutator.extend.checkGuarantees"
ProtoStateMutatorExtendCheckSeals SpanName = "common.state.proto.mutator.extend.checkSeals"
ProtoStateMutatorExtendCheckReceipts SpanName = "common.state.proto.mutator.extend.checkReceipts"
ProtoStateMutatorExtendDBInsert SpanName = "common.state.proto.mutator.extend.dbInsert"
// mutator.HeaderExtend - header-only check
ProtoStateMutatorHeaderExtend SpanName = "common.state.proto.mutator.headerExtend"
ProtoStateMutatorHeaderExtendGetLastSealed SpanName = "common.state.proto.mutator.headerExtend.lastSealed"
// mutator.Finalize
ProtoStateMutatorFinalize SpanName = "common.state.proto.mutator.finalize"
// Consensus Node
//
CONProcessCollection SpanName = "con.processCollection"
CONProcessBlock SpanName = "con.processBlock"
// Hotstuff
CONHotFinalizeCollection SpanName = "con.hotstuff.finalizeCollection"
CONHotFinalizeBlock SpanName = "con.hotstuff.finalizeBlock"
// Ingestion
CONIngOnCollectionGuarantee SpanName = "con.ingestion.onCollectionGuarantee"
// Propagation
CONPropOnGuarantee SpanName = "con.propagation.onGuarantee"
// Provider
CONProvOnBlockProposal SpanName = "con.provider.onBlockProposal"
// Compliance
CONCompBroadcastProposalWithDelay SpanName = "con.compliance.BroadcastProposalWithDelay"
CONCompOnBlockProposal SpanName = "con.compliance.onBlockProposal"
CONCompOnBlockProposalProcessRecursive SpanName = "con.compliance.onBlockProposal.processBlockProposal.recursive"
CONCompOnBlockProposalProcessSingle SpanName = "con.compliance.onBlockProposal.processBlockProposal.single"
// Matching
CONMatchCheckSealing SpanName = "con.sealing.checkSealing"
CONMatchCheckSealingSealableResults SpanName = "con.sealing.checkSealing.sealableResults"
CONMatchCheckSealingClearPools SpanName = "con.sealing.checkSealing.clearPools"
CONMatchCheckSealingRequestPendingReceipts SpanName = "con.sealing.checkSealing.requestPendingReceipts"
CONMatchCheckSealingRequestPendingApprovals SpanName = "con.sealing.checkSealing.requestPendingApprovals"
CONMatchOnReceipt SpanName = "con.sealing.onReceipt"
CONMatchOnReceiptVal SpanName = "con.sealing.onReceipt.validation"
CONMatchOnApproval SpanName = "con.sealing.onApproval"
// Builder
CONBuildOn SpanName = "con.builder"
CONBuildOnCreatePayloadGuarantees SpanName = "con.builder.createPayload.guarantees"
CONBuildOnCreatePayloadSeals SpanName = "con.builder.createPayload.seals"
CONBuildOnCreatePayloadReceipts SpanName = "con.builder.createPayload.receipts"
CONBuildOnCreateHeader SpanName = "con.builder.createHeader"
CONBuildOnDBInsert SpanName = "con.builder.dbInsert"
// Collection Node
//
// Builder
COLBuildOn SpanName = "col.builder"
COLBuildOnSetup SpanName = "col.builder.setup"
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"
COLClusterStateMutatorExtendSetup SpanName = "col.state.mutator.extend.setup"
COLClusterStateMutatorExtendCheckAncestry SpanName = "col.state.mutator.extend.ancestry"
COLClusterStateMutatorExtendCheckTransactionsValid SpanName = "col.state.mutator.extend.transactions.validity"
COLClusterStateMutatorExtendCheckTransactionsDupes SpanName = "col.state.mutator.extend.transactions.dupes"
COLClusterStateMutatorExtendDBInsert SpanName = "col.state.mutator.extend.dbInsert"
// Execution Node
//
EXEExecuteBlock SpanName = "exe.ingestion.executeBlock"
EXESaveExecutionResults SpanName = "exe.ingestion.saveExecutionResults"
EXESaveExecutionReceipt SpanName = "exe.ingestion.saveExecutionReceipt"
EXESaveTransactionResults SpanName = "exe.ingestion.saveTransactionResults"
EXESaveTransactionEvents SpanName = "exe.ingestion.saveTransactionEvents"
EXEBroadcastExecutionReceipt SpanName = "exe.provider.broadcastExecutionReceipt"
EXEComputeBlock SpanName = "exe.computer.computeBlock"
EXEComputeCollection SpanName = "exe.computer.computeCollection"
EXEComputeSystemCollection SpanName = "exe.computer.computeSystemCollection"
EXEComputeTransaction SpanName = "exe.computer.computeTransaction"
EXEMergeTransactionView SpanName = "exe.computer.mergeTransactionView"
EXECommitDelta SpanName = "exe.state.commitDelta"
EXEGenerateChunkDataPacks SpanName = "exe.state.generateChunkDataPacks"
EXEGetRegisters SpanName = "exe.state.getRegisters"
EXEGetRegistersWithProofs SpanName = "exe.state.getRegistersWithProofs"
EXEPersistStateCommitment SpanName = "exe.state.persistStateCommitment"
EXEPersistEvents SpanName = "exe.state.persistEvents"
EXEPersistChunkDataPack SpanName = "exe.state.persistChunkDataPack"
EXEGetExecutionResultID SpanName = "exe.state.getExecutionResultID"
EXEPersistExecutionResult SpanName = "exe.state.persistExecutionResult"
EXEUpdateHighestExecutedBlockIfHigher SpanName = "exe.state.updateHighestExecutedBlockIfHigher"
EXEGetHighestExecutedBlockID SpanName = "exe.state.getHighestExecutedBlockID"
// 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"
FVMInvokeContractFunction SpanName = "fvm.invokeContractFunction"
FVMFrozenAccountCheckTransaction SpanName = "fvm.frozenAccountCheckTransaction"
FVMEnvHash SpanName = "fvm.env.Hash"
FVMEnvValueExists SpanName = "fvm.env.valueExists"
FVMEnvGetValue SpanName = "fvm.env.getValue"
FVMEnvSetValue SpanName = "fvm.env.setValue"
FVMEnvGetStorageUsed SpanName = "fvm.env.getStorageUsed"
FVMEnvGetStorageCapacity SpanName = "fvm.env.getStorageCapacity"
FVMEnvGetAccountBalance SpanName = "fvm.env.getAccountBalance"
FVMEnvResolveLocation SpanName = "fvm.env.resolveLocation"
FVMEnvGetCode SpanName = "fvm.env.getCode"
FVMEnvGetProgram SpanName = "fvm.env.getCachedProgram"
FVMEnvSetProgram SpanName = "fvm.env.cacheProgram"
FVMEnvProgramLog SpanName = "fvm.env.programLog"
FVMEnvEmitEvent SpanName = "fvm.env.emitEvent"
FVMEnvGenerateUUID SpanName = "fvm.env.generateUUID"
FVMEnvDecodeArgument SpanName = "fvm.env.decodeArgument"
FVMEnvVerifySignature SpanName = "fvm.env.verifySignature"
FVMEnvGetCurrentBlockHeight SpanName = "fvm.env.getCurrentBlockHeight"
FVMEnvUnsafeRandom SpanName = "fvm.env.unsafeRandom"
FVMEnvGetBlockAtHeight SpanName = "fvm.env.getBlockAtHeight"
FVMEnvCreateAccount SpanName = "fvm.env.createAccount"
FVMEnvAddAccountKey SpanName = "fvm.env.addAccountKey"
FVMEnvGetAccountKey SpanName = "fvm.env.getAccountKey"
FVMEnvRemoveAccountKey SpanName = "fvm.env.removeAccountKey"
FVMEnvUpdateAccountContractCode SpanName = "fvm.env.updateAccountContractCode"
FVMEnvGetAccountContractCode SpanName = "fvm.env.getAccountContractCode"
FVMEnvRemoveAccountContractCode SpanName = "fvm.env.removeAccountContractCode"
FVMEnvGetSigningAccounts SpanName = "fvm.env.getSigningAccounts"
FVMCadenceParseProgram SpanName = "fvm.cadence.parseProgram"
FVMCadenceCheckProgram SpanName = "fvm.cadence.checkProgram"
FVMCadenceInterpretProgram SpanName = "fvm.cadence.interpretProgram"
FVMCadenceEncodeValue SpanName = "fvm.cadence.encodeValue"
FVMCadenceDecodeValue SpanName = "fvm.cadence.decodeValue"
)
// Tag names
const (
EXEParseDurationTag = "runtime.parseTransactionDuration"
EXECheckDurationTag = "runtime.checkTransactionDuration"
EXEInterpretDurationTag = "runtime.interpretTransactionDuration"
EXEValueEncodingDurationTag = "runtime.encodingValueDuration"
EXEValueDecodingDurationTag = "runtime.decodingValueDuration"
)