Top Description Methods
io.opentelemetry.api.metrics

public Interface DoubleGauge

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

A gauge instrument that synchronously records double values.
Since
1.38.0

Method Summary

Modifier and TypeMethod and Description
public void
set(double
The current gauge value.
value
)

Set the gauge value.

public void
set(double
The current gauge value.
value
,
Attributes
A set of attributes to associate with the value.
attributes
)

Records a value with a set of attributes.

public void
set(double
The current gauge value.
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

setback to summary
public void set(double value)

Set the gauge value.

Parameters
value:double

The current gauge value.

setback to summary
public void set(double value, Attributes attributes)

Records a value with a set of attributes.

Parameters
value:double

The current gauge value.

attributes:Attributes

A set of attributes to associate with the value.

setback to summary
public void set(double value, Attributes attributes, Context context)

Records a value with a set of attributes.

Parameters
value:double

The current gauge value.

attributes:Attributes

A set of attributes to associate with the value.

context:Context

The explicit context to associate with this measurement.