Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Improve error message, logging and metrics #34

Merged
merged 3 commits into from
Jun 12, 2018
Merged

Improve error message, logging and metrics #34

merged 3 commits into from
Jun 12, 2018

Conversation

cw9
Copy link
Contributor

@cw9 cw9 commented Jun 12, 2018

Add more context to some errors.
Improve queue size metrics.
Remove connection logging on start up.

@xichen2020 @jeromefroe

Copy link

@jeromefroe jeromefroe left a comment

Choose a reason for hiding this comment

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

LGTM

m.Ack()
}

func (a *acks) size() int {
a.Lock()

Choose a reason for hiding this comment

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

nit: is it worth using a RWLock here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really, this size() is being called very rarely and all other functions on the hot path requires a write lock so I don't think rlock here would help much

@cw9 cw9 merged commit 042ee4e into master Jun 12, 2018
@cw9 cw9 deleted the chao-improve-err branch June 12, 2018 14:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants