Class AttributedLongTimer
java.lang.Object
org.apache.solr.metrics.otel.instruments.AttributedLongHistogram
org.apache.solr.metrics.otel.instruments.AttributedLongTimer
- Direct Known Subclasses:
DualRegistryAttributedLongTimer
This class records the elapsed time (in milliseconds) to a
LongHistogram with the use of
a AttributedLongTimer.MetricTimer-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.solr.metrics.otel.instruments.AttributedLongHistogram
attributes, histogram -
Constructor Summary
ConstructorsConstructorDescriptionAttributedLongTimer(io.opentelemetry.api.metrics.LongHistogram histogram, io.opentelemetry.api.common.Attributes attributes) -
Method Summary
Modifier and TypeMethodDescriptionstart()Return aAttributedLongTimer.MetricTimerand starts the timer.Return aAttributedLongTimer.MetricTimerand starts the timer.Methods inherited from class org.apache.solr.metrics.otel.instruments.AttributedLongHistogram
record
-
Constructor Details
-
AttributedLongTimer
public AttributedLongTimer(io.opentelemetry.api.metrics.LongHistogram histogram, io.opentelemetry.api.common.Attributes attributes)
-
-
Method Details
-
start
Return aAttributedLongTimer.MetricTimerand starts the timer. When the timer callsAttributedLongTimer.MetricTimer.stop(), the elapsed time is recorded, in milliseconds -
start
Return aAttributedLongTimer.MetricTimerand starts the timer. When the timer callsAttributedLongTimer.MetricTimer.stop(), the elapsed time is recorded, in the specified TimeUnit
-