Top Description Methods
io.opentelemetry.api.metrics

public Interface DoubleHistogram

Known Direct Implementers
io.opentelemetry.api.metrics.DefaultMeter.NoopDoubleHistogram
Annotations
@ThreadSafe
Imports
io.opentelemetry.api.common.Attributes, io.opentelemetry.context.Context, javax.annotation.concurrent.ThreadSafe

A Histogram instrument that records double values.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public void
record(double
The amount of the measurement. MUST be non-negative.
value
)

Records a value.

public void
record(double
The amount of the measurement. MUST be non-negative.
value
,
Attributes
A set of attributes to associate with the value.
attributes
)

Records a value with a set of attributes.

public void
record(double
The amount of the measurement. MUST be non-negative.
value
,
Attributes
A set of attributes to associate with the value.
attributes
,
Context
The explicit context to associate with this measurement.
context
)

Records a value with a set of attributes.

Method Detail

recordback to summary
public void record(double value)

Records a value.

Note

This may use Context.current() to pull the context associated with this measurement.

Parameters
value:double

The amount of the measurement. MUST be non-negative.

recordback to summary
public void record(double value, Attributes attributes)

Records a value with a set of attributes.

Note

This may use Context.current() to pull the context associated with this measurement.

Parameters
value:double

The amount of the measurement. MUST be non-negative.

attributes:Attributes

A set of attributes to associate with the value.

recordback to summary
public void record(double value, Attributes attributes, Context context)

Records a value with a set of attributes.

Parameters
value:double

The amount of the measurement. MUST be non-negative.

attributes:Attributes

A set of attributes to associate with the value.

context:Context

The explicit context to associate with this measurement.