Top Description Methods
io.opentelemetry.api.metrics

public Interface ObservableLongMeasurement

extends ObservableMeasurement
Known Direct Implementers
io.opentelemetry.api.metrics.DefaultMeter.NoopObservableLongMeasurement
Imports
io.opentelemetry.api.common.Attributes

An interface for observing measurements with long values.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public void
record(long
The measurement value.
value
)

Records a measurement.

public void
record(long
The measurement value.
value
,
Attributes
A set of attributes to associate with the value.
attributes
)

Records a measurement with a set of attributes.

Method Detail

recordback to summary
public void record(long value)

Records a measurement.

Parameters
value:long

The measurement value.

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

Records a measurement with a set of attributes.

Parameters
value:long

The measurement value.

attributes:Attributes

A set of attributes to associate with the value.