Class AttributedInstrumentFactory
java.lang.Object
org.apache.solr.metrics.otel.instruments.AttributedInstrumentFactory
Factory for creating metrics instruments that can write to either single or dual registries (core
and node).
-
Constructor Summary
ConstructorsConstructorDescriptionAttributedInstrumentFactory(SolrMetricsContext primaryMetricsContext, io.opentelemetry.api.common.Attributes primaryAttributes, boolean aggregateToNodeRegistry) -
Method Summary
Modifier and TypeMethodDescriptionattributedLongCounter(String metricName, String description, io.opentelemetry.api.common.Attributes additionalAttributes) attributedLongTimer(String metricName, String description, OtelUnit unit, io.opentelemetry.api.common.Attributes additionalAttributes) attributedLongUpDownCounter(String metricName, String description, io.opentelemetry.api.common.Attributes additionalAttributes)
-
Constructor Details
-
AttributedInstrumentFactory
public AttributedInstrumentFactory(SolrMetricsContext primaryMetricsContext, io.opentelemetry.api.common.Attributes primaryAttributes, boolean aggregateToNodeRegistry)
-
-
Method Details
-
attributedLongCounter
public AttributedLongCounter attributedLongCounter(String metricName, String description, io.opentelemetry.api.common.Attributes additionalAttributes) -
attributedLongUpDownCounter
public AttributedLongUpDownCounter attributedLongUpDownCounter(String metricName, String description, io.opentelemetry.api.common.Attributes additionalAttributes) -
attributedLongTimer
public AttributedLongTimer attributedLongTimer(String metricName, String description, OtelUnit unit, io.opentelemetry.api.common.Attributes additionalAttributes)
-