public interface Counter


Handle for emitting Long or Counter counter event updates into a trace.

This allows you to monitor numeric values that change over time in a trace, such as the number of events in a queue, or memory usage.

Summary

Public methods

abstract @NonNull String
abstract void
setValue(double value)

Emits a Double value into the trace for the provided name.

abstract void
setValue(long value)

Emits a Long value into the trace for the provided name.

Public methods

name

Added in 2.0.0-alpha07
abstract @NonNull String name()

setValue

Added in 2.0.0-alpha07
abstract void setValue(double value)

Emits a Double value into the trace for the provided name.

setValue

Added in 2.0.0-alpha07
abstract void setValue(long value)

Emits a Long value into the trace for the provided name.