Home
last modified time | relevance | path

Searched refs:metricRegistry (Results 1 – 5 of 5) sorted by relevance

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/
DMetricRegistryImplTest.java66 private final MetricRegistryImpl metricRegistry = new MetricRegistryImpl(testClock); field in MetricRegistryImplTest
96 metricRegistry.addLongGauge(null, DESCRIPTION, UNIT, LABEL_KEY); in addLongGauge_NullName()
103 metricRegistry.addLongGauge(NAME, null, UNIT, LABEL_KEY); in addLongGauge_NullDescription()
110 metricRegistry.addLongGauge(NAME, DESCRIPTION, null, LABEL_KEY); in addLongGauge_NullUnit()
117 metricRegistry.addLongGauge(NAME, DESCRIPTION, UNIT, null); in addLongGauge_NullLabels()
125 metricRegistry.addLongGauge(NAME, DESCRIPTION, UNIT, labelKeys); in addLongGauge_WithNullElement()
132 metricRegistry.addDoubleGauge(null, DESCRIPTION, UNIT, LABEL_KEY); in addDoubleGauge_NullName()
139 metricRegistry.addDoubleGauge(NAME_2, null, UNIT, LABEL_KEY); in addDoubleGauge_NullDescription()
146 metricRegistry.addDoubleGauge(NAME_2, DESCRIPTION, null, LABEL_KEY); in addDoubleGauge_NullUnit()
153 metricRegistry.addDoubleGauge(NAME_2, DESCRIPTION, UNIT, null); in addDoubleGauge_NullLabels()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/
DMetricRegistryTest.java44 private final MetricRegistry metricRegistry = field in MetricRegistryTest
51 metricRegistry.addLongGauge(null, DESCRIPTION, UNIT, LABEL_KEY); in noopAddLongGauge_NullName()
58 metricRegistry.addLongGauge(NAME, null, UNIT, LABEL_KEY); in noopAddLongGauge_NullDescription()
65 metricRegistry.addLongGauge(NAME, DESCRIPTION, null, LABEL_KEY); in noopAddLongGauge_NullUnit()
72 metricRegistry.addLongGauge(NAME, DESCRIPTION, UNIT, null); in noopAddLongGauge_NullLabels()
80 metricRegistry.addLongGauge(NAME, DESCRIPTION, UNIT, labelKeys); in noopAddLongGauge_WithNullElement()
87 metricRegistry.addDoubleGauge(null, DESCRIPTION, UNIT, LABEL_KEY); in noopAddDoubleGauge_NullName()
94 metricRegistry.addDoubleGauge(NAME_2, null, UNIT, LABEL_KEY); in noopAddDoubleGauge_NullDescription()
101 metricRegistry.addDoubleGauge(NAME_2, DESCRIPTION, null, LABEL_KEY); in noopAddDoubleGauge_NullUnit()
108 metricRegistry.addDoubleGauge(NAME_2, DESCRIPTION, UNIT, null); in noopAddDoubleGauge_NullLabels()
[all …]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/
DMetricsComponentImplBase.java27 private final MetricRegistryImpl metricRegistry; field in MetricsComponentImplBase
36 return metricRegistry; in getMetricRegistry()
41 metricRegistry = new MetricRegistryImpl(clock); in MetricsComponentImplBase()
43 exportComponent.getMetricProducerManager().add(metricRegistry.getMetricProducer()); in MetricsComponentImplBase()
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/
DDropWizardMetricsTest.java48 private com.codahale.metrics.MetricRegistry metricRegistry; field in DropWizardMetricsTest
53 metricRegistry = new com.codahale.metrics.MetricRegistry(); in setUp()
54 dropWizardMetrics = new DropWizardMetrics(Collections.singletonList((metricRegistry))); in setUp()
61 Counter evictions = metricRegistry.counter("cache_evictions"); in collect()
74 metricRegistry.register("integer_gauge", integerGauge); in collect()
83 metricRegistry.register("double_gauge", doubleGauge); in collect()
92 metricRegistry.register("long_gauge", longGauge); in collect()
101 metricRegistry.register("float_gauge", floatGauge); in collect()
110 metricRegistry.register("boolean_gauge", boolGauge); in collect()
112 Meter getRequests = metricRegistry.meter("get_requests"); in collect()
[all …]
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/
DDropWizardMetrics.java242 for (com.codahale.metrics.MetricRegistry metricRegistry : metricRegistryList) { in getMetrics()
243 for (Entry<String, Counter> counterEntry : metricRegistry.getCounters().entrySet()) { in getMetrics()
247 for (Entry<String, Gauge> gaugeEntry : metricRegistry.getGauges().entrySet()) { in getMetrics()
254 for (Entry<String, Meter> counterEntry : metricRegistry.getMeters().entrySet()) { in getMetrics()
258 for (Entry<String, Histogram> counterEntry : metricRegistry.getHistograms().entrySet()) { in getMetrics()
262 for (Entry<String, Timer> counterEntry : metricRegistry.getTimers().entrySet()) { in getMetrics()