But I see that pattern everywhere in your change?

On Fri, Jul 26, 2013 at 4:01 PM, Matt T. Proud <notifications@github.com>wrote:

> In client/src/main/java/io/prometheus/client/metrics/Counter.java:
>
> > @@ -33,23 +51,24 @@
> >   * import io.prometheus.client.metrics.Counter;
> >   *
> >   * public class CashRegister {
> > - *   // Annotate this with Register!
> > - *   private static final Counter operations = Counter.builder()
> > - *     .inNamespace("cash_register")
> > - *     .named("operation")
> > - *     .withDimension("operation", "result")
> > - *     .documentedAs("Cash register operations partitioned by type and outcome.")
> > + *   // Annotate this with "Register" if this class is not explicitly loaded
> > + *   // by your project.
> > + *   private static final Counter operations = Counter.newBuilder()
> > + *     .namespace("cash_register")
> > + *     .name("operations")
> > + *     .registerStatic("operation", "result")
>
> That is a bug in the documentation! :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/prometheus/client_java/pull/8/files#r5422928>
> .
>