org.apache.rocketmq.shaded.io.opentelemetry.api.metrics.ObservableDoubleMeasurement Maven / Gradle / Ivy
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.apache.rocketmq.shaded.io.opentelemetry.api.metrics;
import org.apache.rocketmq.shaded.io.opentelemetry.api.common.Attributes;
/** An interface for observing measurements with {@code double} values. */
public interface ObservableDoubleMeasurement {
/**
* Records a measurement.
*
* @param value The measurement amount.
*/
void record(double value);
/**
* Records a measurement with a set of attributes.
*
* @param value The measurement amount.
* @param attributes A set of attributes to associate with the count.
*/
void record(double value, Attributes attributes);
}