Top Description Methods
io.opentelemetry.api.metrics

public Interface LongGauge

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

A gauge instrument that synchronously records long values.
Since
1.38.0

Method Summary

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

Set the gauge value.

public void
set(long
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(long
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(long value)

Set the gauge value.

Parameters
value:long

The current gauge value.

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

Records a value with a set of attributes.

Parameters
value:long

The current gauge value.

attributes:Attributes

A set of attributes to associate with the value.

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

Records a value with a set of attributes.

Parameters
value:long

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.