Skip to content

ref: Add back client reporting to BrowserClient#5018

Merged
lforst merged 3 commits into
7.xfrom
lforst-send-client-reports-browser-client
Apr 29, 2022
Merged

ref: Add back client reporting to BrowserClient#5018
lforst merged 3 commits into
7.xfrom
lforst-send-client-reports-browser-client

Conversation

@lforst
Copy link
Copy Markdown
Contributor

@lforst lforst commented Apr 29, 2022

This adds back the sending of client reports in the browser client.

Ref: https://getsentry.atlassian.net/browse/WEB-775

@lforst lforst added this to the 7.0.0 milestone Apr 29, 2022
@lforst lforst requested review from AbhiPrasad and Lms24 April 29, 2022 08:58
IS_DEBUG_BUILD && logger.log(`Sending outcomes:\n${JSON.stringify(outcomes, null, 2)}`);

const url = getEnvelopeEndpointWithUrlEncodedAuth(this._dsn, this._options.tunnel);
const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It was like this before but I'm very unsure whether the && in this line should actually be a ||.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It was based on this logic:

...(!!api.tunnel && { dsn: dsnToString(api.dsn) }),

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 18.72 KB (-7.06% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 58.39 KB (-9.64% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.41 KB (-7.67% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 52.55 KB (-9.36% 🔽)
@sentry/browser - Webpack (gzipped + minified) 19.18 KB (-17.46% 🔽)
@sentry/browser - Webpack (minified) 62.04 KB (-24.08% 🔽)
@sentry/react - Webpack (gzipped + minified) 19.2 KB (-17.51% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 42.87 KB (-10.8% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 24.51 KB (-6% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 22.98 KB (-6.14% 🔽)

Base automatically changed from lforst-add-track-client-reports-in-baseclient to 7.x April 29, 2022 15:52
@lforst lforst force-pushed the lforst-send-client-reports-browser-client branch from b87aa41 to 9527ceb Compare April 29, 2022 15:56
@lforst lforst merged commit b450538 into 7.x Apr 29, 2022
@lforst lforst deleted the lforst-send-client-reports-browser-client branch April 29, 2022 16:18
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.

2 participants