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

[contrib:rails] only treat 5xx errors as real errors #162

Merged
merged 2 commits into from
Jul 24, 2017

Conversation

ufoot
Copy link
Member

@ufoot ufoot commented Jul 21, 2017

As mentionned in #103 -> do not pull the red flag when error is not a 5xx status code.

@ufoot ufoot added this to the 0.8.0 milestone Jul 21, 2017
@ufoot ufoot requested a review from palazzem July 24, 2017 08:19
Copy link
Contributor

@palazzem palazzem left a comment

Choose a reason for hiding this comment

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

Good to me! Thank you for this community patch!

span.set_tag(Datadog::Ext::Errors::TYPE, error[0])
span.set_tag(Datadog::Ext::Errors::MSG, error[1])
span.set_tag(Datadog::Ext::Errors::STACK, caller().join("\n"))
if defined?(::ActionDispatch::ExceptionWrapper)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ufoot ufoot merged commit 12cdddb into master Jul 24, 2017
@palazzem palazzem deleted the christian/errorhandling branch October 6, 2017 17:58
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.

2 participants