DocsReference@proto-kit/sequencerClassesBlockProductionInstrumentation

@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / BlockProductionInstrumentation

Class: BlockProductionInstrumentation

Extends

Constructors

new BlockProductionInstrumentation()

new BlockProductionInstrumentation(trigger): BlockProductionInstrumentation

Parameters

trigger: BlockTriggerBase<NoConfig, BlockEvents>

Returns

BlockProductionInstrumentation

Overrides

PushInstrumentation.constructor

Defined in

packages/sequencer/src/metrics/BlockProductionInstrumentation.ts:14

Properties

description

description: string = "L2 block height"

Overrides

PushInstrumentation.description

Defined in

packages/sequencer/src/metrics/BlockProductionInstrumentation.ts:12


names

names: string[]

Overrides

PushInstrumentation.names

Defined in

packages/sequencer/src/metrics/BlockProductionInstrumentation.ts:10

Methods

pushValue()

protected pushValue(name, value): void

Parameters

name: string

value: number

Returns

void

Inherited from

PushInstrumentation.pushValue

Defined in

packages/sequencer/src/metrics/Instrumentation.ts:30


setPushFn()

setPushFn(f): void

Parameters

f

Returns

void

Inherited from

PushInstrumentation.setPushFn

Defined in

packages/sequencer/src/metrics/Instrumentation.ts:26


start()

start(): Promise<void>

Returns

Promise<void>

Overrides

PushInstrumentation.start

Defined in

packages/sequencer/src/metrics/BlockProductionInstrumentation.ts:21