Package org.apache.bookkeeper.stats.otel
Class OtelCounter
java.lang.Object
org.apache.bookkeeper.stats.otel.OtelCounter
- All Implemented Interfaces:
Counter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCount(long delta) Add delta to the value associated with this stat.voidaddLatency(long eventLatency, TimeUnit unit) An operation succeeded with the given eventLatency.voidclear()Clear this stat.voiddec()Decrement the value associated with this stat.get()Get the value associated with this stat.voidinc()Increment the value associated with this stat.
-
Constructor Details
-
OtelCounter
OtelCounter(io.opentelemetry.api.metrics.Meter meter, ScopeContext sc)
-
-
Method Details
-
clear
public void clear()Description copied from interface:CounterClear this stat. -
inc
public void inc()Description copied from interface:CounterIncrement the value associated with this stat. -
dec
public void dec()Description copied from interface:CounterDecrement the value associated with this stat. -
addCount
public void addCount(long delta) Description copied from interface:CounterAdd delta to the value associated with this stat. -
addLatency
Description copied from interface:CounterAn operation succeeded with the given eventLatency. Update stats to reflect the same- Specified by:
addLatencyin interfaceCounter- Parameters:
eventLatency- The event latency
-
get
Description copied from interface:CounterGet the value associated with this stat.
-