libp2p
    Preparing search index...

    Type Alias CalculateMetric<T>

    CalculateMetric: (() => T) | (() => Promise<T>)

    A function that returns a tracked metric which may be expensive to calculate so it is only invoked when metrics are being scraped

    Type Parameters

    • T = number