DocsReference@proto-kit/sequencerClassesMempoolInstrumentation

@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / MempoolInstrumentation

Class: MempoolInstrumentation

Implements

Constructors

new MempoolInstrumentation()

new MempoolInstrumentation(mempool): MempoolInstrumentation

Parameters

mempool: PrivateMempool

Returns

MempoolInstrumentation

Defined in

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

Properties

description

description: string = "The size of the mempool"

Implementation of

PollInstrumentation.description

Defined in

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


name

name: string = "mempool_size"

Implementation of

PollInstrumentation.name

Defined in

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

Methods

poll()

poll(): Promise<number>

Returns

Promise<number>

Implementation of

PollInstrumentation.poll

Defined in

packages/sequencer/src/metrics/MempoolInstrumentation.ts:19