couchbase
    Preparing search index...

    Class OTelValueRecorder

    Wrapper class for OpenTelemetry Histogram that implements ValueRecorder interface.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Creates an instance of OTelValueRecorder.

      Parameters

      • histogram: Histogram

        OpenTelemetry Histogram to record values.

      • tags: Record<string, string>

        Tags to associate with recorded values.

      • Optionalunit: string

        Optional unit of measurement (e.g., 's' for seconds). If provided, it indicates that the recorded values should be converted from microseconds to seconds.

      Returns OTelValueRecorder

    Methods

    • Records a value with the associated tags.

      Parameters

      • value: number

        The numeric value to record.

      Returns void