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

Fix Client::captureEvent not considering the attach_stacktrace option #940

Conversation

ste93cry
Copy link
Collaborator

Q A
Branch? 2.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

Fixes #939: the Client::captureEvent method should consider the attach_stacktrace, instead it doesn't (it was done on purpose for some reason because there was a test for this, but I cannot remember/understand why we chose like that)

Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

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

👌

tests/ClientTest.php Show resolved Hide resolved
@ste93cry ste93cry force-pushed the fix/939-capture-event-ignores-attach-stacktrace-option branch 5 times, most recently from 19e973e to a5a3c0f Compare December 21, 2019 00:02
@ste93cry ste93cry force-pushed the fix/939-capture-event-ignores-attach-stacktrace-option branch from a5a3c0f to fd53add Compare December 21, 2019 00:06
@ste93cry ste93cry force-pushed the fix/939-capture-event-ignores-attach-stacktrace-option branch from 1134aee to 49c3d67 Compare December 21, 2019 00:23
@ste93cry ste93cry merged commit 6412b84 into getsentry:master Dec 21, 2019
@ste93cry ste93cry deleted the fix/939-capture-event-ignores-attach-stacktrace-option branch December 21, 2019 00:29
@pilif
Copy link
Contributor

pilif commented Jan 16, 2020

it was done on purpose for some reason because there was a test for this, but I cannot remember/understand why we chose like that

because if you don't do it, the sentry.io web service won't display the backtrace of the captured exception but instead the backtrace to where you called captureException.

See #957

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.

Adding stack traces via captureEvent
5 participants