Skip to content

ref: Deprecate top-level stacktrace - #2214

Merged
kamilogorek merged 2 commits into
masterfrom
deprecate-stacktrace
Aug 29, 2019
Merged

ref: Deprecate top-level stacktrace#2214
kamilogorek merged 2 commits into
masterfrom
deprecate-stacktrace

Conversation

@kamilogorek

Copy link
Copy Markdown
Contributor

image

@kamilogorek
kamilogorek requested a review from HazAT August 26, 2019 10:06
@getsentry-bot

getsentry-bot commented Aug 26, 2019

Copy link
Copy Markdown
Contributor
Fails
🚫

TSLint failed: @sentry/core

🚫

TSLint failed: @sentry/integrations

Messages
📖

@sentry/browser bundle gzip'ed minified size: ($ cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print "ES5: ",$1,"kB";}') (ES5: 16.2051 kB)

Generated by 🚫 dangerJS against d93aa12

@kamilogorek
kamilogorek force-pushed the deprecate-stacktrace branch from 7f61956 to f1fdc70 Compare August 26, 2019 10:21
@HazAT

HazAT commented Aug 26, 2019

Copy link
Copy Markdown
Member

@jan-auer Probably not you but can we tell the Sentry UI to not show the thread selector in case of only one thread?
Some ppl will find this strange in JS.

extra?: { [key: string]: any };
user?: User;
type?: EventType;
threads?: Thread[];

Copy link
Copy Markdown
Member

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.

Comment thread packages/core/src/baseclient.ts Outdated
return;
}

if ('stacktrace' in finalEvent) {

Copy link
Copy Markdown
Member

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.

@jan-auer

Copy link
Copy Markdown
Member

@HazAT @kamilogorek can you test with this please?
getsentry/sentry#14503

@kamilogorek
kamilogorek force-pushed the deprecate-stacktrace branch from f1fdc70 to d93aa12 Compare August 27, 2019 12:34
@kamilogorek

Copy link
Copy Markdown
Contributor Author

@HazAT done

image

@kamilogorek
kamilogorek force-pushed the deprecate-stacktrace branch from 20ea674 to 7d995cb Compare August 29, 2019 11:58
@kamilogorek
kamilogorek merged commit 36d206c into master Aug 29, 2019
@kamilogorek
kamilogorek deleted the deprecate-stacktrace branch August 29, 2019 12:01
@kamilogorek
kamilogorek restored the deprecate-stacktrace branch August 29, 2019 12:52
kamilogorek added a commit that referenced this pull request Aug 29, 2019
@kamilogorek
kamilogorek deleted the deprecate-stacktrace branch October 21, 2020 09:56
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.

4 participants