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

0.1.7 #21

Merged
merged 6 commits into from
Jan 17, 2019
Merged

0.1.7 #21

merged 6 commits into from
Jan 17, 2019

Conversation

ajvb
Copy link
Contributor

@ajvb ajvb commented Jan 15, 2019

  • Replace dont_block variable with the less confusing blocking_mode. Also makes it off by default.
  • Remove early return so that iprepd.status.accepted is always set when a request is not blocked.
  • Gather new metric for total calls to iprepd's get reputation endpoint (iprepd.get_reputation)
  • Gather new metric for dns timeouts to iprepd's domain name. (iprepd.err.dns_timeout)

cc: @milescrabill - Will need to swap the "blocking enabled" variables in cloudops-infra back to what you had them at :)

if err then
if self.statsd then
self.statsd.incr("iprepd.err." .. err)
if string.find(err, " ") then
if string.find(err, "could not be resolved") and string.find(err, "Operation timed out") then
Copy link
Contributor

Choose a reason for hiding this comment

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

We should log the else condition cases (errors with spaces in them that are not DNS or timeouts)

@ajvb ajvb merged commit 69a2131 into master Jan 17, 2019
@ajvb ajvb deleted the ajvb/0.1.7 branch January 17, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants