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

io.opentelemetry.api.metrics.DoubleHistogram Maven / Gradle / Ivy

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.api.metrics;

import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.context.Context;
import javax.annotation.concurrent.ThreadSafe;

/** A histogram instrument that records {@code long} values. */
@ThreadSafe
public interface DoubleHistogram {

  /**
   * Records a value.
   *
   * 

Note: This may use {@code Context.current()} to pull the context associated with this * measurement. * * @param value The amount of the measurement. */ void record(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 amount of the measurement. * @param attributes A set of attributes to associate with the count. */ void record(double value, Attributes attributes); /** * Records a value with a set of attributes. * * @param value The amount of the measurement. * @param attributes A set of attributes to associate with the count. * @param context The explicit context to associate with this measurement. */ void record(double value, Attributes attributes, Context context); /** * Constructs a bound version of this instrument where all recorded values use the given * attributes. */ BoundDoubleHistogram bind(Attributes attributes); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy