Class AttributedInstrumentFactory

java.lang.Object
org.apache.solr.metrics.otel.instruments.AttributedInstrumentFactory

public class AttributedInstrumentFactory extends Object
Factory for creating metrics instruments that can write to either single or dual registries (core and node).
  • 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)