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(core): Ensure tunnel is considered for isSentryUrl checks #9130

Merged
merged 1 commit into from Sep 27, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Sep 27, 2023

Also streamline these and use the same util in all places.

Also streamline these and use the same util in all places.
@mydea mydea self-assigned this Sep 27, 2023
const protocol = requestOptions.protocol || '';
const hostname = requestOptions.hostname || requestOptions.host || '';
// Don't log standard :80 (http) and :443 (https) ports to reduce the noise
// Also don't add port if the hostname already includes a port
Copy link
Member Author

Choose a reason for hiding this comment

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

Also noticed that host may include the port (e.g. localhost:3000), so we better check that this is not the case before re-adding the port.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.61 KB (+0.05% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.44 KB (-0.07% 🔽)
@sentry/browser - Webpack (gzipped) 22.04 KB (-0.12% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.3 KB (+0.04% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.55 KB (-0.09% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped) 20.63 KB (-0.1% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 222.24 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 86.47 KB (-0.12% 🔽)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 61.32 KB (-0.17% 🔽)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.4 KB (-0.09% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.63 KB (+0.03% 🔺)
@sentry/react - Webpack (gzipped) 22.07 KB (-0.11% 🔽)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.49 KB (+0.01% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.98 KB (-0.12% 🔽)

@mydea mydea merged commit e10748b into develop Sep 27, 2023
82 checks passed
@mydea mydea deleted the fn/is-sentry-request-url-tunnel branch September 27, 2023 14:20
c298lee pushed a commit that referenced this pull request Sep 27, 2023
)

Also streamline these and use the same util in all places.
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

2 participants