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

do not auto-attach a backtrace when logging an exception #960

Merged
merged 6 commits into from
Jan 17, 2020

Conversation

pilif
Copy link
Contributor

@pilif pilif commented Jan 17, 2020

this fixes #957.

The sentry server prefers the event's stacktrace over an attached exception's stacktrace, so if a stacktrace is attached to an event containing an exception, the web interface would show the backtrace to where the exception was captured rather than the exception's backtrace.

src/Client.php Outdated Show resolved Hide resolved
src/Client.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@pilif
Copy link
Contributor Author

pilif commented Jan 17, 2020

haha - creating conflicts with myself - and on CHANGELOG.md no less.

rebasing 😊

Copy link
Collaborator

@ste93cry ste93cry left a comment

Choose a reason for hiding this comment

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

One last round of code changes to polish things and then LGTM for me

src/Client.php Outdated Show resolved Hide resolved
src/Client.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
tests/ClientTest.php Outdated Show resolved Hide resolved
pilif added 6 commits January 17, 2020 14:59
this fixes getsentry#957.

The sentry server prefers the event's stacktrace over an attached
exception's stacktrace, so if a stacktrace is attached to an event
containing an exception, the web interface would show the backtrace to
where the exception was captured rather than the exception's backtrace.
this is a change requested in code review in order to remove duplicated
logic in `captureMessage` in the future.
captureEvent now does everything this needs
@ste93cry ste93cry merged commit f28c0e1 into getsentry:master Jan 17, 2020
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.3.0 with manual integration produces useless backtrace
3 participants