Skip to content

Conversation

@mitsuhiko
Copy link
Contributor

@mitsuhiko mitsuhiko commented May 10, 2021

This is a non working WIP implementation of adding a mode to the JavaScript SDK to work around ad blockers blocking traffic.

The idea is that if a URL is configured with envelopeTunnel the transport forces all events to be sent as envelopes (with embedded auth), no url parameters are configured and the submission URL is the given tunnel URL instead of the regular one.

This is intended to address getsentry/sentry#25607

@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.97 KB (+0.01% 🔺)
@sentry/browser - Webpack 21.85 KB (0%)
@sentry/react - Webpack 21.88 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.36 KB (+0.01% 🔺)

@kamilogorek kamilogorek marked this pull request as ready for review May 11, 2021 11:09
@kamilogorek kamilogorek self-requested a review as a code owner May 11, 2021 11:09
HazAT
HazAT previously requested changes May 21, 2021
const transportOptions = {
...this._options.transportOptions,
dsn: this._options.dsn,
envelopeTunnel: this._options.envelopeTunnel,
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer if we call this option only tunnel.
Users don't care and understand what an envelope is and I would consider it an implementation detail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’m fine calling it just tunnel.

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated

@kamilogorek
Copy link
Contributor

Docs: getsentry/sentry-docs#3631

@kamilogorek kamilogorek force-pushed the feature/envelope-tunnel branch from 08bdd97 to 314149c Compare June 14, 2021 08:10
@kamilogorek kamilogorek dismissed HazAT’s stale review June 14, 2021 08:11

Already approved earlier, rebased on master

@kamilogorek kamilogorek merged commit 0acf10c into master Jun 14, 2021
@kamilogorek kamilogorek deleted the feature/envelope-tunnel branch June 14, 2021 08:11
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