Top Description Methods
io.opentelemetry.api.metrics

public Interface DoubleCounter

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

A Counter instrument that records double values.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public void
add(double
The increment amount. MUST be non-negative.
value
)

Records a value.

public void
add(double
The increment amount. 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
add(double
The increment amount. 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

addback to summary
public void add(double value)

Records a value.

Note

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

Parameters
value:double

The increment amount. MUST be non-negative.

addback to summary
public void add(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 increment amount. MUST be non-negative.

attributes:Attributes

A set of attributes to associate with the value.

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

Records a value with a set of attributes.

Parameters
value:double

The increment amount. 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.