/** * Declare a counter metric, with default dimension values as given. Create * the point argument by using a builder from {@link #pointBuilder()}. * * @param name * the name of the metric * @param boundDimensions * dimensions which have a fixed value in the life cycle of the * metric object or null * @return a thread-safe counter with given default values */ public Counter declareCounter(String name, Point boundDimensions) { return new Counter(name, boundDimensions, this); }