null

package
v1.9.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package null is a null metrics logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is a metrics service that drops metrics.

func New

func New(_ context.Context) *Service

New creates a new null metrics service.

func (*Service) Accounts

func (*Service) Accounts(_ string, _ uint64)

Accounts sets the number of accounts in a given state.

func (*Service) AttestationAggregationCompleted

func (*Service) AttestationAggregationCompleted(_ time.Time, _ phase0.Slot, _ string)

AttestationAggregationCompleted is called when an attestation aggregation process has completed.

func (*Service) AttestationAggregationCoverage

func (*Service) AttestationAggregationCoverage(_ float64)

AttestationAggregationCoverage measures the attestation ratio of the attestation aggregation.

func (*Service) AttestationsCompleted added in v1.0.3

func (*Service) AttestationsCompleted(_ time.Time, _ phase0.Slot, _ int, _ string)

AttestationsCompleted is called when an attestation process has completed.

func (*Service) BeaconBlockProposalCompleted

func (*Service) BeaconBlockProposalCompleted(_ time.Time, _ phase0.Slot, _ string)

BeaconBlockProposalCompleted is called when a block proposal process has completed.

func (*Service) BeaconBlockProposalSource added in v1.6.0

func (*Service) BeaconBlockProposalSource(_ string)

BeaconBlockProposalSource is called to tag the source of a beacon block proposal.

func (*Service) BeaconCommitteeAggregators

func (*Service) BeaconCommitteeAggregators(_ int)

BeaconCommitteeAggregators sets the number of beacon committees for which our validators are aggregating.

func (*Service) BeaconCommitteeSubscribers

func (*Service) BeaconCommitteeSubscribers(_ int)

BeaconCommitteeSubscribers sets the number of beacon committees to which our validators are subscribed.

func (*Service) BeaconCommitteeSubscriptionCompleted

func (*Service) BeaconCommitteeSubscriptionCompleted(_ time.Time, _ string)

BeaconCommitteeSubscriptionCompleted is called when an beacon committee subscription process has completed.

func (*Service) BlockDelay

func (*Service) BlockDelay(_ uint, _ time.Duration)

BlockDelay provides the delay between the start of a slot and vouch receiving its block.

func (*Service) ClientOperation

func (*Service) ClientOperation(_ string, _ string, _ bool, _ time.Duration)

ClientOperation provides a generic monitor for client operations.

func (*Service) JobCancelled

func (*Service) JobCancelled(_ string)

JobCancelled is called when a scheduled job is cancelled.

func (*Service) JobScheduled

func (*Service) JobScheduled(_ string)

JobScheduled is called when a job is scheduled.

func (*Service) JobStartedOnSignal

func (*Service) JobStartedOnSignal(_ string)

JobStartedOnSignal is called when a scheduled job is started due to being manually signal.

func (*Service) JobStartedOnTimer

func (*Service) JobStartedOnTimer(_ string)

JobStartedOnTimer is called when a scheduled job is started due to meeting its time.

func (*Service) NewEpoch

func (*Service) NewEpoch()

NewEpoch is called when vouch starts processing a new epoch.

func (*Service) Presenter added in v1.2.0

func (*Service) Presenter() string

Presenter provides the presenter for this service.

func (*Service) StrategyOperation added in v1.2.0

func (*Service) StrategyOperation(_ string, _ string, _ string, _ time.Duration)

StrategyOperation provides a generic monitor for strategy operations.

func (*Service) SyncCommitteeAggregationCoverage added in v1.3.0

func (*Service) SyncCommitteeAggregationCoverage(_ float64)

SyncCommitteeAggregationCoverage measures the message ratio of the sync committee aggregation.

func (*Service) SyncCommitteeAggregationsCompleted added in v1.2.0

func (*Service) SyncCommitteeAggregationsCompleted(_ time.Time, _ phase0.Slot, _ int, _ string)

SyncCommitteeAggregationsCompleted is called when a sync committee aggregation process has completed.

func (*Service) SyncCommitteeMessagesCompleted added in v1.2.0

func (*Service) SyncCommitteeMessagesCompleted(_ time.Time, _ phase0.Slot, _ int, _ string)

SyncCommitteeMessagesCompleted is called when a sync committee message process has completed.

func (*Service) SyncCommitteeSubscribers added in v1.2.2

func (*Service) SyncCommitteeSubscribers(_ int)

SyncCommitteeSubscribers sets the number of sync committees to which our validators are subscribed.

func (*Service) SyncCommitteeSubscriptionCompleted added in v1.2.2

func (*Service) SyncCommitteeSubscriptionCompleted(_ time.Time, _ string)

SyncCommitteeSubscriptionCompleted is called when a sync committee subscription process has completed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL