Skip to content
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

Remove global stats variables for uhttp #318

Merged
4 commits merged into from
Feb 23, 2017
Merged

Remove global stats variables for uhttp #318

4 commits merged into from
Feb 23, 2017

Conversation

bufdev
Copy link
Contributor

@bufdev bufdev commented Feb 23, 2017

No description provided.

@mention-bot
Copy link

@peter-edge, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yutongp, @anuptalwalkar and @madhuravi to be potential reviewers.

@bufdev bufdev mentioned this pull request Feb 23, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 92.034% when pulling e673255 on stats-uhttp-no-global into 8622d3c on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 92.034% when pulling e466830 on stats-uhttp-no-global into 8622d3c on master.

func SetupHTTPMetrics(scope tally.Scope) {
httpScope := scope.Tagged(HTTPTags)
HTTPPanicCounter = httpScope.Counter("panic")
// Client is a client for stats.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think metrics were moved to internal package, because of the globals, now they can become private structs in the uhttp package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh haha ok, I'll do that

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 92.086% when pulling f6c8c41 on stats-uhttp-no-global into 8622d3c on master.

@@ -33,31 +33,46 @@ const (
TagMiddleware = "middleware"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall these tag names be private?

@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

package stats
package uhttp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are moving stats back to uhttp, how about client? ;P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another PR I think :)

Copy link
Contributor

@HelloGrayson HelloGrayson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - of course, please get stamps from 'ze UberFX team :)

@coveralls
Copy link

coveralls commented Feb 23, 2017

Coverage Status

Coverage increased (+0.03%) to 92.074% when pulling ff2262b on stats-uhttp-no-global into 8622d3c on master.

@ghost ghost merged commit 0e99b1a into master Feb 23, 2017
@ghost ghost deleted the stats-uhttp-no-global branch February 23, 2017 21:19
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants