couchbase
    Preparing search index...

    Interface Meter

    Abstract interface for creating and managing value recorders.

    Implementations should allow creating value recorders with specific names and tags for organizing and categorizing metrics.

    interface Meter {
        valueRecorder(name: string, tags: Record<string, any>): ValueRecorder;
    }

    Implemented by

    Index

    Methods

    • Gets or creates a value recorder with the specified name and tags.

      Parameters

      • name: string

        The name of the recorder (typically operation name).

      • tags: Record<string, any>

        Key-value pairs that categorize the metric (e.g., service, operation).

      Returns ValueRecorder

      A value recorder for recording values.