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

[dogstatsd] Recover gracefully from serialization errors #2176

Merged
merged 1 commit into from
Jan 5, 2016

Conversation

olivielpeau
Copy link
Member

  • try to skip errors so that we can serialize what we can
  • add a metric on serialization status

try:
metrics.append(add_serialization_status_metric("success", hostname))
serialized = json.dumps({"series": metrics})
except (UnicodeDecodeError, Exception) as e:
Copy link

Choose a reason for hiding this comment

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

stupid me :( will fix

- try to skip errors so that we can serialize what we can
- add a metric on serialization status
@olivielpeau olivielpeau force-pushed the olivielpeau/unicode-safe-serialization branch from d24809f to 718dc33 Compare January 5, 2016 21:21
remh pushed a commit that referenced this pull request Jan 5, 2016
…ization

[dogstatsd] Recover gracefully from serialization errors
@remh remh merged commit 5d89fc1 into master Jan 5, 2016
@olivielpeau olivielpeau deleted the olivielpeau/unicode-safe-serialization branch January 6, 2016 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants