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: Improve bundle size by moving span status #2589

Merged
merged 5 commits into from
May 18, 2020
Merged

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented May 14, 2020

before:

ES6:  16.2129 kB
ES5:  17.1836 kB

after:

ES6:  15.8711 kB
ES5:  16.8379 kB

@HazAT HazAT requested a review from kamilogorek as a code owner May 14, 2020 12:12
@@ -88,7 +88,7 @@ export interface SpanContext {
/**
* Completion status of the Span.
*/
status?: SpanStatus;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is, of course, a downside but given we save 0.3kb gzipped I think it's worth it.

@getsentry-bot
Copy link
Contributor

getsentry-bot commented May 14, 2020

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 16.7998 kB) (ES6: 15.8506 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against 3532ad4

@HazAT HazAT merged commit 36d5cc6 into master May 18, 2020
@HazAT HazAT deleted the hazat/apm-bundle-size branch May 18, 2020 13:27
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

3 participants