Top Description Methods
io.opentelemetry.api.metrics

public Interface LongUpDownCounter

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

An UpDownCounter instrument that records long values.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public void
add(long
The increment amount. May be positive, negative or zero.
value
)

Records a value.

public void
add(long
The increment amount. May be positive, negative or zero.
value
,
Attributes
A set of attributes to associate with the value.
attributes
)

Record a value with a set of attributes.

public void
add(long
The increment amount. May be positive, negative or zero.
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

addback to summary
public void add(long value)

Records a value.

Note

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

Parameters
value:long

The increment amount. May be positive, negative or zero.

addback to summary
public void add(long value, Attributes attributes)

Record a value with a set of attributes.

Note

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

Parameters
value:long

The increment amount. May be positive, negative or zero.

attributes:Attributes

A set of attributes to associate with the value.

addback to summary
public void add(long value, Attributes attributes, Context context)

Records a value with a set of attributes.

Parameters
value:long

The increment amount. May be positive, negative or zero.

attributes:Attributes

A set of attributes to associate with the value.

context:Context

The explicit context to associate with this measurement.