Aster TypeScript 0.3.893
    Preparing search index...

    Variable metricsConst

    metrics: {
        counter: (name: string, options?: InstrumentOptions) => Counter;
        upDownCounter: (name: string, options?: InstrumentOptions) => UpDownCounter;
        histogram: (name: string, options?: InstrumentOptions) => Histogram;
        gauge: (name: string, options?: InstrumentOptions) => Gauge;
        attributes: (attributes: Attributes) => AttributeSet;
    }

    The metrics namespace of the design: metrics.counter(...).

    Type Declaration

    • counter: (name: string, options?: InstrumentOptions) => Counter
    • upDownCounter: (name: string, options?: InstrumentOptions) => UpDownCounter
    • histogram: (name: string, options?: InstrumentOptions) => Histogram
    • gauge: (name: string, options?: InstrumentOptions) => Gauge
    • attributes: (attributes: Attributes) => AttributeSet

      Intern an attribute set for a hot path.