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

Avoid same error if other line than first change #555

Merged

Conversation

shingara
Copy link
Member

@shingara shingara commented Sep 5, 2013

Only the first line of backtrace was use to mark error like same. Avoid
this behavior because some language ( like python ) change only last
line of backtrace

See mailing https://groups.google.com/d/msg/errbit/JuIGnN289ps/FWWF6_6qDR8J

Only the first line of backtrace was use to mark error like same. Avoid
this behavior because some language ( like python ) change only last
line of backtrace
@coveralls
Copy link

Coverage Status

Coverage increased (+0.45%) when pulling 28a7ff2 on shingara:bugs/not_same_if_change_last_backtrace_line into 0e90eba on errbit:master.

@senny
Copy link

senny commented Sep 5, 2013

Thanks, I'll run this PR to see the difference in the upcoming days.

/cc @jone

@shingara
Copy link
Member Author

@senny @jone This fix works fine to you ?

@senny
Copy link

senny commented Sep 12, 2013

@shingara sorry for the delay, I've just deployed the branch and it does indeed split the errors up where previously we would have gotten a single group. As this change could lead to many more groups I'd like to monitor it for some time running with the patch and see how the grouping turns out. Is that alright for you? I'll provide feedback in the upcoming week.

@shingara
Copy link
Member Author

Ok, thanks. I waiting your feedback to merge this patch and release the 0.2.1 errbit version.

@senny
Copy link

senny commented Sep 16, 2013

@shingara the patch works good and the grouping is much more useful than before. Thank you.

shingara added a commit that referenced this pull request Sep 24, 2013
…cktrace_line

Avoid same error if other line than first change
@shingara shingara merged commit 38f5810 into errbit:master Sep 24, 2013
@PikachuEXE
Copy link
Contributor

How should I produce custom errors if I want to use this?
Since I got lots of custom error groups but they were group together

I think the behaviour of "Fingerprint" needs some documentation

@tamaloa
Copy link
Contributor

tamaloa commented Nov 18, 2013

Same here.
Updated to 0-2-stable a few days ago and suddenly got an application with several thousand new exceptions (would have been a single exception group with several thousand occurrences before)! May be a weird application dependent bug (stacktrace length is excessive with several hundred identical lines) but a better documentation would help :)

The exceptions all seemed to have occured in delayed_job 3.0.5 in combination with delayed-plugins-airbrake-1.0.0

@shingara shingara deleted the bugs/not_same_if_change_last_backtrace_line branch November 21, 2013 14:13
@shingara
Copy link
Member Author

Ok, I really need release a errbit 0.2.1 version with this fix so.

@tamaloa
Copy link
Contributor

tamaloa commented Nov 21, 2013

Yes - actually we patched the code locally to restore old behaviour which is of course not ideal :(

I suppose a lot of people , as we do, use CustomExceptions to catch all exceptions in a certain piece of code. There should be the possibility to see these exceptions grouped. It would be great if errbit continued supporting this behaviour either via a global config option or a per application behaviour.

Typical example :)

begin
  response = HTTParty.get(self.url)
rescue Exception => e
  raise CustomWebRequestSomehowFailedException.new(e)
end

would have been grouped nicely before (while still providing the different error classes on the overview as percentage)

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.

None yet

5 participants