All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.shade.io.opentelemetry.api.metrics.DoubleUpDownCounter Maven / Gradle / Ivy

There is a newer version: 1.9.4.Final
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package com.aliyun.openservices.shade.com.aliyun.openservices.shade.io.opentelemetry.api.metrics;

import com.aliyun.openservices.shade.com.aliyun.openservices.shade.io.opentelemetry.api.common.Attributes;
import com.aliyun.openservices.shade.com.aliyun.openservices.shade.io.opentelemetry.context.Context;
import javax.annotation.concurrent.ThreadSafe;

/** An up-down-counter instrument that records {@code double} values. */
@ThreadSafe
public interface DoubleUpDownCounter {
  /**
   * Records a value.
   *
   * 

Note: This may use {@code Context.current()} to pull the context associated with this * measurement. * * @param value The increment amount. May be positive, negative or zero. */ void add(double value); /** * Records a value with a set of attributes. * *

Note: This may use {@code Context.current()} to pull the context associated with this * measurement. * * @param value The increment amount. May be positive, negative or zero. * @param attributes A set of attributes to associate with the count. */ void add(double value, Attributes attributes); /** * Records a value with a set of attributes. * * @param value The increment amount. May be positive, negative or zero. * @param attributes A set of attributes to associate with the count. * @param context The explicit context to associate with this measurement. */ void add(double value, Attributes attributes, Context context); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy