github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/metrics/noop.go (about) 1 package metrics 2 3 import ( 4 "context" 5 "time" 6 7 "google.golang.org/grpc/codes" 8 9 "github.com/libp2p/go-libp2p/core/network" 10 "github.com/libp2p/go-libp2p/core/peer" 11 "github.com/libp2p/go-libp2p/core/protocol" 12 httpmetrics "github.com/slok/go-http-metrics/metrics" 13 14 "github.com/onflow/flow-go/model/chainsync" 15 "github.com/onflow/flow-go/model/cluster" 16 "github.com/onflow/flow-go/model/flow" 17 "github.com/onflow/flow-go/module" 18 "github.com/onflow/flow-go/network/channels" 19 p2pmsg "github.com/onflow/flow-go/network/p2p/message" 20 ) 21 22 type NoopCollector struct{} 23 24 func NewNoopCollector() *NoopCollector { 25 nc := &NoopCollector{} 26 return nc 27 } 28 29 func (nc *NoopCollector) OutboundMessageSent(int, string, string, string) {} 30 func (nc *NoopCollector) InboundMessageReceived(int, string, string, string) {} 31 func (nc *NoopCollector) DuplicateInboundMessagesDropped(string, string, string) {} 32 func (nc *NoopCollector) UnicastMessageSendingStarted(topic string) {} 33 func (nc *NoopCollector) UnicastMessageSendingCompleted(topic string) {} 34 func (nc *NoopCollector) BlockProposed(*flow.Block) {} 35 func (nc *NoopCollector) BlockProposalDuration(duration time.Duration) {} 36 37 // interface check 38 var _ module.BackendScriptsMetrics = (*NoopCollector)(nil) 39 var _ module.TransactionMetrics = (*NoopCollector)(nil) 40 var _ module.HotstuffMetrics = (*NoopCollector)(nil) 41 var _ module.EngineMetrics = (*NoopCollector)(nil) 42 var _ module.HeroCacheMetrics = (*NoopCollector)(nil) 43 var _ module.NetworkMetrics = (*NoopCollector)(nil) 44 45 func (nc *NoopCollector) Peers(prefix string, n int) {} 46 func (nc *NoopCollector) Wantlist(prefix string, n int) {} 47 func (nc *NoopCollector) BlobsReceived(prefix string, n uint64) {} 48 func (nc *NoopCollector) DataReceived(prefix string, n uint64) {} 49 func (nc *NoopCollector) BlobsSent(prefix string, n uint64) {} 50 func (nc *NoopCollector) DataSent(prefix string, n uint64) {} 51 func (nc *NoopCollector) DupBlobsReceived(prefix string, n uint64) {} 52 func (nc *NoopCollector) DupDataReceived(prefix string, n uint64) {} 53 func (nc *NoopCollector) MessagesReceived(prefix string, n uint64) {} 54 func (nc *NoopCollector) NetworkMessageSent(sizeBytes int, topic string, messageType string) {} 55 func (nc *NoopCollector) NetworkMessageReceived(sizeBytes int, topic string, messageType string) {} 56 func (nc *NoopCollector) NetworkDuplicateMessagesDropped(topic string, messageType string) {} 57 func (nc *NoopCollector) MessageAdded(priority int) {} 58 func (nc *NoopCollector) MessageRemoved(priority int) {} 59 func (nc *NoopCollector) QueueDuration(duration time.Duration, priority int) {} 60 func (nc *NoopCollector) MessageProcessingStarted(topic string) {} 61 func (nc *NoopCollector) MessageProcessingFinished(topic string, duration time.Duration) {} 62 func (nc *NoopCollector) DirectMessageStarted(topic string) {} 63 func (nc *NoopCollector) DirectMessageFinished(topic string) {} 64 func (nc *NoopCollector) MessageSent(engine string, message string) {} 65 func (nc *NoopCollector) MessageReceived(engine string, message string) {} 66 func (nc *NoopCollector) MessageHandled(engine string, message string) {} 67 func (nc *NoopCollector) InboundMessageDropped(engine string, message string) {} 68 func (nc *NoopCollector) OutboundMessageDropped(engine string, messages string) {} 69 func (nc *NoopCollector) OutboundConnections(_ uint) {} 70 func (nc *NoopCollector) InboundConnections(_ uint) {} 71 func (nc *NoopCollector) DNSLookupDuration(duration time.Duration) {} 72 func (nc *NoopCollector) OnDNSCacheMiss() {} 73 func (nc *NoopCollector) OnDNSCacheInvalidated() {} 74 func (nc *NoopCollector) OnDNSCacheHit() {} 75 func (nc *NoopCollector) OnDNSLookupRequestDropped() {} 76 func (nc *NoopCollector) UnstakedOutboundConnections(_ uint) {} 77 func (nc *NoopCollector) UnstakedInboundConnections(_ uint) {} 78 func (nc *NoopCollector) RanGC(duration time.Duration) {} 79 func (nc *NoopCollector) BadgerLSMSize(sizeBytes int64) {} 80 func (nc *NoopCollector) BadgerVLogSize(sizeBytes int64) {} 81 func (nc *NoopCollector) BadgerNumReads(n int64) {} 82 func (nc *NoopCollector) BadgerNumWrites(n int64) {} 83 func (nc *NoopCollector) BadgerNumBytesRead(n int64) {} 84 func (nc *NoopCollector) BadgerNumBytesWritten(n int64) {} 85 func (nc *NoopCollector) BadgerNumGets(n int64) {} 86 func (nc *NoopCollector) BadgerNumPuts(n int64) {} 87 func (nc *NoopCollector) BadgerNumBlockedPuts(n int64) {} 88 func (nc *NoopCollector) BadgerNumMemtableGets(n int64) {} 89 func (nc *NoopCollector) FinalizedHeight(height uint64) {} 90 func (nc *NoopCollector) SealedHeight(height uint64) {} 91 func (nc *NoopCollector) BlockFinalized(*flow.Block) {} 92 func (nc *NoopCollector) BlockSealed(*flow.Block) {} 93 func (nc *NoopCollector) EpochTransitionHeight(height uint64) {} 94 func (nc *NoopCollector) CurrentEpochCounter(counter uint64) {} 95 func (nc *NoopCollector) CurrentEpochPhase(phase flow.EpochPhase) {} 96 func (nc *NoopCollector) CurrentEpochFinalView(view uint64) {} 97 func (nc *NoopCollector) CurrentDKGPhase1FinalView(view uint64) {} 98 func (nc *NoopCollector) CurrentDKGPhase2FinalView(view uint64) {} 99 func (nc *NoopCollector) CurrentDKGPhase3FinalView(view uint64) {} 100 func (nc *NoopCollector) EpochEmergencyFallbackTriggered() {} 101 func (nc *NoopCollector) CacheEntries(resource string, entries uint) {} 102 func (nc *NoopCollector) CacheHit(resource string) {} 103 func (nc *NoopCollector) CacheNotFound(resource string) {} 104 func (nc *NoopCollector) CacheMiss(resource string) {} 105 func (nc *NoopCollector) MempoolEntries(resource string, entries uint) {} 106 func (nc *NoopCollector) Register(resource string, entriesFunc module.EntriesFunc) error { return nil } 107 func (nc *NoopCollector) HotStuffBusyDuration(duration time.Duration, event string) {} 108 func (nc *NoopCollector) HotStuffIdleDuration(duration time.Duration) {} 109 func (nc *NoopCollector) HotStuffWaitDuration(duration time.Duration, event string) {} 110 func (nc *NoopCollector) SetCurView(view uint64) {} 111 func (nc *NoopCollector) SetQCView(view uint64) {} 112 func (nc *NoopCollector) SetTCView(uint64) {} 113 func (nc *NoopCollector) CountSkipped() {} 114 func (nc *NoopCollector) CountTimeout() {} 115 func (nc *NoopCollector) BlockProcessingDuration(time.Duration) {} 116 func (nc *NoopCollector) VoteProcessingDuration(time.Duration) {} 117 func (nc *NoopCollector) TimeoutObjectProcessingDuration(time.Duration) {} 118 func (nc *NoopCollector) SetTimeout(duration time.Duration) {} 119 func (nc *NoopCollector) CommitteeProcessingDuration(duration time.Duration) {} 120 func (nc *NoopCollector) SignerProcessingDuration(duration time.Duration) {} 121 func (nc *NoopCollector) ValidatorProcessingDuration(duration time.Duration) {} 122 func (nc *NoopCollector) PayloadProductionDuration(duration time.Duration) {} 123 func (nc *NoopCollector) TimeoutCollectorsRange(uint64, uint64, int) {} 124 func (nc *NoopCollector) TransactionIngested(txID flow.Identifier) {} 125 func (nc *NoopCollector) ClusterBlockProposed(*cluster.Block) {} 126 func (nc *NoopCollector) ClusterBlockFinalized(*cluster.Block) {} 127 func (nc *NoopCollector) StartCollectionToFinalized(collectionID flow.Identifier) {} 128 func (nc *NoopCollector) FinishCollectionToFinalized(collectionID flow.Identifier) {} 129 func (nc *NoopCollector) StartBlockToSeal(blockID flow.Identifier) {} 130 func (nc *NoopCollector) FinishBlockToSeal(blockID flow.Identifier) {} 131 func (nc *NoopCollector) EmergencySeal() {} 132 func (nc *NoopCollector) OnReceiptProcessingDuration(duration time.Duration) {} 133 func (nc *NoopCollector) OnApprovalProcessingDuration(duration time.Duration) {} 134 func (nc *NoopCollector) CheckSealingDuration(duration time.Duration) {} 135 func (nc *NoopCollector) OnExecutionResultReceivedAtAssignerEngine() {} 136 func (nc *NoopCollector) OnVerifiableChunkReceivedAtVerifierEngine() {} 137 func (nc *NoopCollector) OnResultApprovalDispatchedInNetworkByVerifier() {} 138 func (nc *NoopCollector) SetMaxChunkDataPackAttemptsForNextUnsealedHeightAtRequester(attempts uint64) { 139 } 140 func (nc *NoopCollector) OnFinalizedBlockArrivedAtAssigner(height uint64) {} 141 func (nc *NoopCollector) OnChunksAssignmentDoneAtAssigner(chunks int) {} 142 func (nc *NoopCollector) OnAssignedChunkProcessedAtAssigner() {} 143 func (nc *NoopCollector) OnAssignedChunkReceivedAtFetcher() {} 144 func (nc *NoopCollector) OnChunkDataPackRequestDispatchedInNetworkByRequester() {} 145 func (nc *NoopCollector) OnChunkDataPackRequestSentByFetcher() {} 146 func (nc *NoopCollector) OnChunkDataPackRequestReceivedByRequester() {} 147 func (nc *NoopCollector) OnChunkDataPackArrivedAtFetcher() {} 148 func (nc *NoopCollector) OnChunkDataPackSentToFetcher() {} 149 func (nc *NoopCollector) OnVerifiableChunkSentToVerifier() {} 150 func (nc *NoopCollector) OnBlockConsumerJobDone(uint64) {} 151 func (nc *NoopCollector) OnChunkConsumerJobDone(uint64) {} 152 func (nc *NoopCollector) OnChunkDataPackResponseReceivedFromNetworkByRequester() {} 153 func (nc *NoopCollector) TotalConnectionsInPool(connectionCount uint, connectionPoolSize uint) {} 154 func (nc *NoopCollector) ConnectionFromPoolReused() {} 155 func (nc *NoopCollector) ConnectionAddedToPool() {} 156 func (nc *NoopCollector) NewConnectionEstablished() {} 157 func (nc *NoopCollector) ConnectionFromPoolInvalidated() {} 158 func (nc *NoopCollector) ConnectionFromPoolUpdated() {} 159 func (nc *NoopCollector) ConnectionFromPoolEvicted() {} 160 func (nc *NoopCollector) StartBlockReceivedToExecuted(blockID flow.Identifier) {} 161 func (nc *NoopCollector) FinishBlockReceivedToExecuted(blockID flow.Identifier) {} 162 func (nc *NoopCollector) ExecutionComputationUsedPerBlock(computation uint64) {} 163 func (nc *NoopCollector) ExecutionStorageStateCommitment(bytes int64) {} 164 func (nc *NoopCollector) ExecutionCheckpointSize(bytes uint64) {} 165 func (nc *NoopCollector) ExecutionLastExecutedBlockHeight(height uint64) {} 166 func (nc *NoopCollector) ExecutionLastFinalizedExecutedBlockHeight(height uint64) {} 167 func (nc *NoopCollector) ExecutionBlockExecuted(_ time.Duration, _ module.ExecutionResultStats) {} 168 func (nc *NoopCollector) ExecutionCollectionExecuted(_ time.Duration, _ module.ExecutionResultStats) { 169 } 170 func (nc *NoopCollector) ExecutionBlockExecutionEffortVectorComponent(_ string, _ uint) {} 171 func (nc *NoopCollector) ExecutionBlockCachedPrograms(programs int) {} 172 func (nc *NoopCollector) ExecutionTransactionExecuted(_ time.Duration, _ int, _, _ uint64, _, _ int, _ bool) { 173 } 174 func (nc *NoopCollector) ExecutionChunkDataPackGenerated(_, _ int) {} 175 func (nc *NoopCollector) ExecutionScriptExecuted(dur time.Duration, compUsed, _, _ uint64) {} 176 func (nc *NoopCollector) ForestApproxMemorySize(bytes uint64) {} 177 func (nc *NoopCollector) ForestNumberOfTrees(number uint64) {} 178 func (nc *NoopCollector) LatestTrieRegCount(number uint64) {} 179 func (nc *NoopCollector) LatestTrieRegCountDiff(number int64) {} 180 func (nc *NoopCollector) LatestTrieRegSize(size uint64) {} 181 func (nc *NoopCollector) LatestTrieRegSizeDiff(size int64) {} 182 func (nc *NoopCollector) LatestTrieMaxDepthTouched(maxDepth uint16) {} 183 func (nc *NoopCollector) UpdateCount() {} 184 func (nc *NoopCollector) ProofSize(bytes uint32) {} 185 func (nc *NoopCollector) UpdateValuesNumber(number uint64) {} 186 func (nc *NoopCollector) UpdateValuesSize(byte uint64) {} 187 func (nc *NoopCollector) UpdateDuration(duration time.Duration) {} 188 func (nc *NoopCollector) UpdateDurationPerItem(duration time.Duration) {} 189 func (nc *NoopCollector) ReadValuesNumber(number uint64) {} 190 func (nc *NoopCollector) ReadValuesSize(byte uint64) {} 191 func (nc *NoopCollector) ReadDuration(duration time.Duration) {} 192 func (nc *NoopCollector) ReadDurationPerItem(duration time.Duration) {} 193 func (nc *NoopCollector) ExecutionCollectionRequestSent() {} 194 func (nc *NoopCollector) ExecutionCollectionRequestRetried() {} 195 func (nc *NoopCollector) RuntimeTransactionParsed(dur time.Duration) {} 196 func (nc *NoopCollector) RuntimeTransactionChecked(dur time.Duration) {} 197 func (nc *NoopCollector) RuntimeTransactionInterpreted(dur time.Duration) {} 198 func (nc *NoopCollector) RuntimeSetNumberOfAccounts(count uint64) {} 199 func (nc *NoopCollector) RuntimeTransactionProgramsCacheMiss() {} 200 func (nc *NoopCollector) RuntimeTransactionProgramsCacheHit() {} 201 func (nc *NoopCollector) ScriptExecuted(dur time.Duration, size int) {} 202 func (nc *NoopCollector) ScriptExecutionErrorLocal() {} 203 func (nc *NoopCollector) ScriptExecutionErrorOnExecutionNode() {} 204 func (nc *NoopCollector) ScriptExecutionResultMismatch() {} 205 func (nc *NoopCollector) ScriptExecutionResultMatch() {} 206 func (nc *NoopCollector) ScriptExecutionErrorMismatch() {} 207 func (nc *NoopCollector) ScriptExecutionErrorMatch() {} 208 func (nc *NoopCollector) ScriptExecutionNotIndexed() {} 209 func (nc *NoopCollector) TransactionResultFetched(dur time.Duration, size int) {} 210 func (nc *NoopCollector) TransactionReceived(txID flow.Identifier, when time.Time) {} 211 func (nc *NoopCollector) TransactionFinalized(txID flow.Identifier, when time.Time) {} 212 func (nc *NoopCollector) TransactionExecuted(txID flow.Identifier, when time.Time) {} 213 func (nc *NoopCollector) TransactionExpired(txID flow.Identifier) {} 214 func (nc *NoopCollector) TransactionSubmissionFailed() {} 215 func (nc *NoopCollector) UpdateExecutionReceiptMaxHeight(height uint64) {} 216 func (nc *NoopCollector) UpdateLastFullBlockHeight(height uint64) {} 217 func (nc *NoopCollector) ChunkDataPackRequestProcessed() {} 218 func (nc *NoopCollector) ExecutionSync(syncing bool) {} 219 func (nc *NoopCollector) ExecutionBlockDataUploadStarted() {} 220 func (nc *NoopCollector) ExecutionBlockDataUploadFinished(dur time.Duration) {} 221 func (nc *NoopCollector) ExecutionComputationResultUploaded() {} 222 func (nc *NoopCollector) ExecutionComputationResultUploadRetried() {} 223 func (nc *NoopCollector) RootIDComputed(duration time.Duration, numberOfChunks int) {} 224 func (nc *NoopCollector) AddBlobsSucceeded(duration time.Duration, totalSize uint64) {} 225 func (nc *NoopCollector) AddBlobsFailed() {} 226 func (nc *NoopCollector) FulfilledHeight(blockHeight uint64) {} 227 func (nc *NoopCollector) ReceiptSkipped() {} 228 func (nc *NoopCollector) RequestSucceeded(uint64, time.Duration, uint64, int) {} 229 func (nc *NoopCollector) RequestFailed(duration time.Duration, retryable bool) {} 230 func (nc *NoopCollector) RequestCanceled() {} 231 func (nc *NoopCollector) ResponseDropped() {} 232 func (nc *NoopCollector) Pruned(height uint64, duration time.Duration) {} 233 func (nc *NoopCollector) UpdateCollectionMaxHeight(height uint64) {} 234 func (nc *NoopCollector) BucketAvailableSlots(uint64, uint64) {} 235 func (nc *NoopCollector) OnKeyPutSuccess(uint32) {} 236 func (nc *NoopCollector) OnEntityEjectionDueToFullCapacity() {} 237 func (nc *NoopCollector) OnEntityEjectionDueToEmergency() {} 238 func (nc *NoopCollector) OnKeyGetSuccess() {} 239 func (nc *NoopCollector) OnKeyGetFailure() {} 240 func (nc *NoopCollector) OnKeyPutAttempt(uint32) {} 241 func (nc *NoopCollector) OnKeyPutDrop() {} 242 func (nc *NoopCollector) OnKeyPutDeduplicated() {} 243 func (nc *NoopCollector) OnKeyRemoved(uint32) {} 244 func (nc *NoopCollector) ExecutionDataFetchStarted() {} 245 func (nc *NoopCollector) ExecutionDataFetchFinished(_ time.Duration, _ bool, _ uint64) {} 246 func (nc *NoopCollector) NotificationSent(height uint64) {} 247 func (nc *NoopCollector) FetchRetried() {} 248 func (nc *NoopCollector) RoutingTablePeerAdded() {} 249 func (nc *NoopCollector) RoutingTablePeerRemoved() {} 250 func (nc *NoopCollector) PrunedBlockById(status *chainsync.Status) {} 251 func (nc *NoopCollector) PrunedBlockByHeight(status *chainsync.Status) {} 252 func (nc *NoopCollector) PrunedBlocks(totalByHeight, totalById, storedByHeight, storedById int) {} 253 func (nc *NoopCollector) RangeRequested(ran chainsync.Range) {} 254 func (nc *NoopCollector) BatchRequested(batch chainsync.Batch) {} 255 func (nc *NoopCollector) OnUnauthorizedMessage(role, msgType, topic, offense string) {} 256 func (nc *NoopCollector) ObserveHTTPRequestDuration(context.Context, httpmetrics.HTTPReqProperties, time.Duration) { 257 } 258 func (nc *NoopCollector) ObserveHTTPResponseSize(context.Context, httpmetrics.HTTPReqProperties, int64) { 259 } 260 func (nc *NoopCollector) AddInflightRequests(context.Context, httpmetrics.HTTPProperties, int) {} 261 func (nc *NoopCollector) AddTotalRequests(context.Context, string, string) {} 262 func (nc *NoopCollector) OnRateLimitedPeer(pid peer.ID, role, msgType, topic, reason string) { 263 } 264 func (nc *NoopCollector) OnStreamCreated(duration time.Duration, attempts int) {} 265 func (nc *NoopCollector) OnStreamCreationFailure(duration time.Duration, attempts int) {} 266 func (nc *NoopCollector) OnPeerDialed(duration time.Duration, attempts int) {} 267 func (nc *NoopCollector) OnPeerDialFailure(duration time.Duration, attempts int) {} 268 func (nc *NoopCollector) OnStreamEstablished(duration time.Duration, attempts int) {} 269 func (nc *NoopCollector) OnEstablishStreamFailure(duration time.Duration, attempts int) {} 270 func (nc *NoopCollector) OnDialRetryBudgetUpdated(budget uint64) {} 271 func (nc *NoopCollector) OnStreamCreationRetryBudgetUpdated(budget uint64) {} 272 func (nc *NoopCollector) OnDialRetryBudgetResetToDefault() {} 273 func (nc *NoopCollector) OnStreamCreationRetryBudgetResetToDefault() {} 274 275 var _ module.HeroCacheMetrics = (*NoopCollector)(nil) 276 277 func (nc *NoopCollector) OnIWantControlMessageIdsTruncated(diff int) {} 278 func (nc *NoopCollector) OnIWantMessageIDsReceived(msgIdCount int) {} 279 func (nc *NoopCollector) OnIHaveMessageIDsReceived(channel string, msgIdCount int) {} 280 func (nc *NoopCollector) OnLocalMeshSizeUpdated(string, int) {} 281 func (nc *NoopCollector) OnPeerAddedToProtocol(protocol string) {} 282 func (nc *NoopCollector) OnPeerRemovedFromProtocol() {} 283 func (nc *NoopCollector) OnLocalPeerJoinedTopic() {} 284 func (nc *NoopCollector) OnLocalPeerLeftTopic() {} 285 func (nc *NoopCollector) OnPeerGraftTopic(topic string) {} 286 func (nc *NoopCollector) OnPeerPruneTopic(topic string) {} 287 func (nc *NoopCollector) OnMessageEnteredValidation(size int) {} 288 func (nc *NoopCollector) OnMessageRejected(size int, reason string) {} 289 func (nc *NoopCollector) OnMessageDuplicate(size int) {} 290 func (nc *NoopCollector) OnPeerThrottled() {} 291 func (nc *NoopCollector) OnRpcReceived(msgCount int, iHaveCount int, iWantCount int, graftCount int, pruneCount int) { 292 } 293 func (nc *NoopCollector) OnRpcSent(msgCount int, iHaveCount int, iWantCount int, graftCount int, pruneCount int) { 294 } 295 func (nc *NoopCollector) OnOutboundRpcDropped() {} 296 func (nc *NoopCollector) OnUndeliveredMessage() {} 297 func (nc *NoopCollector) OnMessageDeliveredToAllSubscribers(size int) {} 298 func (nc *NoopCollector) AllowConn(network.Direction, bool) {} 299 func (nc *NoopCollector) BlockConn(network.Direction, bool) {} 300 func (nc *NoopCollector) AllowStream(peer.ID, network.Direction) {} 301 func (nc *NoopCollector) BlockStream(peer.ID, network.Direction) {} 302 func (nc *NoopCollector) AllowPeer(peer.ID) {} 303 func (nc *NoopCollector) BlockPeer(peer.ID) {} 304 func (nc *NoopCollector) AllowProtocol(protocol.ID) {} 305 func (nc *NoopCollector) BlockProtocol(protocol.ID) {} 306 func (nc *NoopCollector) BlockProtocolPeer(protocol.ID, peer.ID) {} 307 func (nc *NoopCollector) AllowService(string) {} 308 func (nc *NoopCollector) BlockService(string) {} 309 func (nc *NoopCollector) BlockServicePeer(string, peer.ID) {} 310 func (nc *NoopCollector) AllowMemory(int) {} 311 func (nc *NoopCollector) BlockMemory(int) {} 312 func (nc *NoopCollector) SetWarningStateCount(u uint) {} 313 func (nc *NoopCollector) OnInvalidMessageDeliveredUpdated(topic channels.Topic, f float64) {} 314 func (nc *NoopCollector) OnMeshMessageDeliveredUpdated(topic channels.Topic, f float64) {} 315 func (nc *NoopCollector) OnFirstMessageDeliveredUpdated(topic channels.Topic, f float64) {} 316 func (nc *NoopCollector) OnTimeInMeshUpdated(topic channels.Topic, duration time.Duration) {} 317 func (nc *NoopCollector) OnBehaviourPenaltyUpdated(f float64) {} 318 func (nc *NoopCollector) OnIPColocationFactorUpdated(f float64) {} 319 func (nc *NoopCollector) OnAppSpecificScoreUpdated(f float64) {} 320 func (nc *NoopCollector) OnOverallPeerScoreUpdated(f float64) {} 321 func (nc *NoopCollector) OnIHaveControlMessageIdsTruncated(diff int) {} 322 func (nc *NoopCollector) OnControlMessagesTruncated(messageType p2pmsg.ControlMessageType, diff int) { 323 } 324 func (nc *NoopCollector) OnIncomingRpcReceived(iHaveCount, iWantCount, graftCount, pruneCount, msgCount int) { 325 } 326 func (nc *NoopCollector) AsyncProcessingStarted() {} 327 func (nc *NoopCollector) AsyncProcessingFinished(time.Duration) {} 328 func (nc *NoopCollector) OnIWantMessagesInspected(duplicateCount int, cacheMissCount int) {} 329 func (nc *NoopCollector) OnIWantDuplicateMessageIdsExceedThreshold() {} 330 func (nc *NoopCollector) OnIWantCacheMissMessageIdsExceedThreshold() {} 331 func (nc *NoopCollector) OnIHaveMessagesInspected(duplicateTopicIds int, duplicateMessageIds, invalidTopicIds int) { 332 } 333 func (nc *NoopCollector) OnIHaveDuplicateTopicIdsExceedThreshold() {} 334 func (nc *NoopCollector) OnIHaveInvalidTopicIdsExceedThreshold() {} 335 func (nc *NoopCollector) OnIHaveDuplicateMessageIdsExceedThreshold() {} 336 func (nc *NoopCollector) OnInvalidTopicIdDetectedForControlMessage(messageType p2pmsg.ControlMessageType) { 337 } 338 func (nc *NoopCollector) OnActiveClusterIDsNotSetErr() {} 339 func (nc *NoopCollector) OnUnstakedPeerInspectionFailed() {} 340 func (nc *NoopCollector) OnInvalidControlMessageNotificationSent() {} 341 func (nc *NoopCollector) OnRpcRejectedFromUnknownSender() {} 342 func (nc *NoopCollector) OnPublishMessagesInspectionErrorExceedsThreshold() {} 343 func (nc *NoopCollector) OnPruneDuplicateTopicIdsExceedThreshold() {} 344 func (nc *NoopCollector) OnPruneInvalidTopicIdsExceedThreshold() {} 345 func (nc *NoopCollector) OnPruneMessageInspected(duplicateTopicIds, invalidTopicIds int) {} 346 func (nc *NoopCollector) OnGraftDuplicateTopicIdsExceedThreshold() {} 347 func (nc *NoopCollector) OnGraftInvalidTopicIdsExceedThreshold() {} 348 func (nc *NoopCollector) OnGraftMessageInspected(duplicateTopicIds, invalidTopicIds int) {} 349 func (nc *NoopCollector) OnPublishMessageInspected(totalErrCount int, invalidTopicIdsCount int, invalidSubscriptionsCount int, invalidSendersCount int) { 350 } 351 352 func (nc *NoopCollector) OnMisbehaviorReported(string, string) {} 353 func (nc *NoopCollector) OnViolationReportSkipped() {} 354 355 var _ ObserverMetrics = (*NoopCollector)(nil) 356 357 func (nc *NoopCollector) RecordRPC(handler, rpc string, code codes.Code) {} 358 359 var _ module.ExecutionStateIndexerMetrics = (*NoopCollector)(nil) 360 361 func (nc *NoopCollector) BlockIndexed(uint64, time.Duration, int, int, int) {} 362 func (nc *NoopCollector) BlockReindexed() {} 363 func (nc *NoopCollector) InitializeLatestHeight(height uint64) {} 364 365 var _ module.GossipSubScoringRegistryMetrics = (*NoopCollector)(nil) 366 367 func (nc *NoopCollector) DuplicateMessagePenalties(penalty float64) {} 368 369 func (nc *NoopCollector) DuplicateMessagesCounts(count float64) {} 370 371 var _ module.CollectionExecutedMetric = (*NoopCollector)(nil) 372 373 func (nc *NoopCollector) CollectionFinalized(light flow.LightCollection) {} 374 func (nc *NoopCollector) CollectionExecuted(light flow.LightCollection) {} 375 func (nc *NoopCollector) ExecutionReceiptReceived(r *flow.ExecutionReceipt) { 376 } 377 378 func (nc *NoopCollector) AccountBalance(bal float64) {} 379 func (nc *NoopCollector) RecommendedMinBalance(bal float64) {} 380 func (nc *NoopCollector) IsMisconfigured(misconfigured bool) {} 381 382 var _ module.MachineAccountMetrics = (*NoopCollector)(nil)