New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added metrics support (using Codahale metrics). #11
Conversation
Added CodaHale Metrics support Added PoolingDataSource connection wait time metric Added PoolingDataSource in-use-connections histogram metric
I had to delete my previous repository, because due to reverts, the rebase was not working. So I recreated my master, and pushed this single commit. Even if I commit temporary changes and squash them prior to sending the pull-request, I still need to push, as GitHub requires the changes in the remote repository. But if the code review requires new commits, I could then simply commit in my local branch and re-squash the already squashed commit (the one that was reviewed) with the latest changes (addressing the code review). Can I create feature branches with GitHub fork repositories too, so I can take advantage of the simplified pull-request UI? |
Yes, once you fork, you can create any branches you like in your own fork. See here about how to push a local feature branch to your git repository (and track it). |
Hi, That's how I intend to work on external repositories from now on. I found this free online book(http://git-scm.com/book) about Git, which details all workflows. There is a lot of documentation for Git and GitHub, but every project has to define its own workflow. For larger projects like Bitronix, the feature branch approach makes more sense, but it's not that easy, unless you have That's why I thought of writing down a step-by-step visual guide. I'll send it to you when it's done and if you like it, you can add it to some developer guideline document. Vlad On Tuesday, February 11, 2014 12:38 PM, Brett Wooldridge notifications@github.com wrote: Yes, once you fork, you can create any branches you like in your own fork. See here about how to push a local feature branch to your git repository (and track it). |
I also tend to like the feature-branch model, where reviewed contributions Brett On Tue, Feb 11, 2014 at 7:51 PM, Vlad Mihalcea notifications@github.comwrote:
|
... The only tricky part is, if the btm/master "moves" while you are On Tue, Feb 11, 2014 at 7:53 PM, Brett Wooldridge <
|
Hi, But you can use the pull-request just for code-reviewing only and merge it with Git only when you want to add it to a specific release. This way you(the product owner) don't have to use the original Pull-request, you can just merge the contributor's feature branch into your release branch (the product owner's master) When I started using GitHub, I relied only on the UI for all my work. With feature branches, you can forget about it and use only the command line. The web UI is useful for code reviewing. Vlad On Tuesday, February 11, 2014 12:55 PM, Brett Wooldridge notifications@github.com wrote: ... The only tricky part is, if the btm/master "moves" while you are On Tue, Feb 11, 2014 at 7:53 PM, Brett Wooldridge <
|
I've just reviewed your Metrics changes. Except for the initialization code that has to be rewritten to be in TransactionManagerServices and to be thread-safe, I quite like it! If you can do those modifications, I'll merge your branch in the official source tree. If you need help or something is unclear, just let me know. |
Thanks for appreciating it. I'll have to find some time to fix those findings and commit them in my branch, then squash and force them. I'll let you know when I'm done. On Wednesday, April 2, 2014 11:11 AM, lorban notifications@github.com wrote: I've just reviewed your Metrics changes. Except for the initialization code that has to be rewritten to be in TransactionManagerServices and to be thread-safe, I quite like it! |
Your review made me realized the metrics design doesn't fit into the current Bitronix architecture. I am on a tight schedule so I am not sure when I'll be able to rewrite the metrics implementation. I'll summarize it to know what's to do:
Vlad On Wednesday, April 2, 2014 2:14 PM, Mihalcea Vlad mih_vlad@yahoo.com wrote: Thanks for appreciating it. I'll have to find some time to fix those findings and commit them in my branch, then squash and force them. I'll let you know when I'm done. On Wednesday, April 2, 2014 11:11 AM, lorban notifications@github.com wrote: I've just reviewed your Metrics changes. Except for the initialization code that has to be rewritten to be in TransactionManagerServices and to be thread-safe, I quite like it! |
Added CodaHale Metrics support
Added PoolingDataSource connection wait time metric
Added PoolingDataSource in-use-connections histogram metric
Refactored the in-use-connections logic since previous code review, please check its logic out.
Basically it should tell how many connections are in use at any given time, for building an accurate histogram.
My current solution is based on subtracting: totalPoolSize - availablePoolSize.