getCounter( 'testMetric_total' ) * ->setLabel( 'first', 'foo' ) * ->setLabel( 'second', 'bar' ) * ->increment(); * ``` * statsd: "mediawiki.testMetric_total.foo.bar" * prometheus: "mediawiki_testMetric_total{ first='foo', second='bar' } * * @param string $key * @param string $value * @return self|NullMetric */ public function setLabel( string $key, string $value ); /** * Convenience function to set a number of labels at once. * @see ::setLabel * @param array $labels * @return self|NullMetric */ public function setLabels( array $labels ); /** * Copies metric operation to StatsD at provided namespace. * * Takes a namespace or multiple namespaces. * * @param string|string[] $statsdNamespaces * @return self|NullMetric */ public function copyToStatsdAt( $statsdNamespaces ); /** * Returns metric with cleared labels. * * @return self|NullMetric */ public function fresh(); }