Package org.apache.bookkeeper.stats.otel
Class OtelMetricsProvider
java.lang.Object
org.apache.bookkeeper.stats.otel.OtelMetricsProvider
- All Implemented Interfaces:
StatsProvider
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ConcurrentMap<ScopeContext,OtelCounter> (package private) final io.opentelemetry.api.metrics.Meter(package private) final ConcurrentMap<ScopeContext,OtelOpStatsLogger> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStatsLogger(String scope) Return the stats logger to a given scope.voidstart(org.apache.commons.configuration2.Configuration conf) Initialize the stats provider by loading the given configuration conf.voidstop()Close the stats provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.bookkeeper.stats.StatsProvider
getStatsName, writeAllMetrics
-
Field Details
-
counters
-
opStats
-
meter
final io.opentelemetry.api.metrics.Meter meter
-
-
Constructor Details
-
OtelMetricsProvider
OtelMetricsProvider()
-
-
Method Details
-
start
public void start(org.apache.commons.configuration2.Configuration conf) Description copied from interface:StatsProviderInitialize the stats provider by loading the given configuration conf.- Specified by:
startin interfaceStatsProvider- Parameters:
conf- Configuration to configure the stats provider.
-
stop
public void stop()Description copied from interface:StatsProviderClose the stats provider.- Specified by:
stopin interfaceStatsProvider
-
getStatsLogger
Description copied from interface:StatsProviderReturn the stats logger to a given scope.- Specified by:
getStatsLoggerin interfaceStatsProvider- Parameters:
scope- Scope for the given stats- Returns:
- stats logger for the given scope
-