public static Counter . Builder prepareCounterFor ( final MethodDescriptor < ? , ? > method , final String name , final String description ) { return Counter . builder ( name ) . description ( description ) . baseUnit ( "messages" ) . tag ( TAG_SERVICE_NAME , extractServiceName ( method ) ) . tag ( TAG_METHOD_NAME , extractMethodName ( method ) ) ; }
Creates a new counter builder for the given method . By default the base unit will be messages .