-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref: Deprecate top-level stacktrace #2214
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
Conversation
kamilogorek
commented
Aug 26, 2019
|
7f61956
to
f1fdc70
Compare
@jan-auer Probably not you but can we tell the Sentry UI to not show the thread selector in case of only one thread? |
@@ -33,6 +34,7 @@ export interface Event { | |||
extra?: { [key: string]: any }; | |||
user?: User; | |||
type?: EventType; | |||
threads?: Thread[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a @deprecated Use event.threads.0.stacktrace
comment to stacktrace
.
packages/core/src/baseclient.ts
Outdated
@@ -371,6 +371,12 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement | |||
return; | |||
} | |||
|
|||
if ('stacktrace' in finalEvent) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove this, just bloats up the bundle size.
If we deprecate the property in TS in the type it's enough.
@HazAT @kamilogorek can you test with this please? |
f1fdc70
to
d93aa12
Compare
@HazAT done |
20ea674
to
7d995cb
Compare
This reverts commit 36d206c.