Class AsyncInstrumentRegistry
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.internal.AsyncInstrumentRegistry
-
public final class AsyncInstrumentRegistry extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsyncInstrumentRegistry.AsyncMeasurementHandleThis class is internal and is hence not for public use.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> AsyncInstrumentRegistry.AsyncMeasurementHandlebuildDoubleCounter(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, T obj, ToDoubleFunction<T> objMetric)<T> AsyncInstrumentRegistry.AsyncMeasurementHandlebuildGauge(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, T obj, ToDoubleFunction<T> objMetric)<T> AsyncInstrumentRegistry.AsyncMeasurementHandlebuildLongCounter(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, T obj, ToLongFunction<T> objMetric)<T> AsyncInstrumentRegistry.AsyncMeasurementHandlebuildUpDownDoubleCounter(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, T obj, ToDoubleFunction<T> objMetric)static AsyncInstrumentRegistrygetOrCreate(io.opentelemetry.api.metrics.Meter meter)Returns theAsyncInstrumentRegistryfor the passedMeter.
-
-
-
Method Detail
-
getOrCreate
public static AsyncInstrumentRegistry getOrCreate(io.opentelemetry.api.metrics.Meter meter)
Returns theAsyncInstrumentRegistryfor the passedMeter. There is at most oneAsyncInstrumentRegistrycreated for each OpenTelemetryMeter.
-
buildGauge
public <T> AsyncInstrumentRegistry.AsyncMeasurementHandle buildGauge(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, @Nullable T obj, ToDoubleFunction<T> objMetric)
-
buildDoubleCounter
public <T> AsyncInstrumentRegistry.AsyncMeasurementHandle buildDoubleCounter(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, @Nullable T obj, ToDoubleFunction<T> objMetric)
-
buildLongCounter
public <T> AsyncInstrumentRegistry.AsyncMeasurementHandle buildLongCounter(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, @Nullable T obj, ToLongFunction<T> objMetric)
-
buildUpDownDoubleCounter
public <T> AsyncInstrumentRegistry.AsyncMeasurementHandle buildUpDownDoubleCounter(String name, String description, String baseUnit, io.opentelemetry.api.common.Attributes attributes, T obj, ToDoubleFunction<T> objMetric)
-
-