Skip to content

feat: Tracing + Reduced Bundle Size + build updates #2038

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

Merged
merged 29 commits into from
May 8, 2019
Merged

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Apr 25, 2019

This PR adds Tracing integration that patches XHR and fetch to add sentry-trace header for whitelisted urls in traceOrigins. It's still considered internal but we will ship a beta version running on sentry.io to see how it goes.

@HazAT HazAT requested a review from kamilogorek as a code owner April 25, 2019 12:49
@HazAT HazAT self-assigned this Apr 25, 2019
@getsentry-bot
Copy link
Contributor

getsentry-bot commented Apr 25, 2019

Messages
📖 ✅ TSLint passed
📖

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

Generated by 🚫 dangerJS against 3c775eb

@HazAT HazAT mentioned this pull request May 6, 2019
8 tasks
@HazAT HazAT changed the title [WIP] Feat/tracing feat: Tracing + Reduced Bundle Size + build updates May 8, 2019
public constructor(private readonly _options: TracingOptions) {
if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) {
consoleSandbox(() => {
const defaultTracingOrigins = ['localhost', /^\//];
Copy link
Contributor

Choose a reason for hiding this comment

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

You never use it. I'd also allow for 0 length arrays, so just !Array.isArray will be now enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

ups 🙈

@HazAT HazAT merged commit af092e3 into master May 8, 2019
@HazAT HazAT deleted the feat/tracing branch May 8, 2019 13:06
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.

3 participants