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(hybridcloud) Improve API gateway routing for error-embed #69815

Merged
merged 2 commits into from Apr 29, 2024

Conversation

markstory
Copy link
Member

The browser SDK is still creating URLs for the error-embed views using sentry.io for customers in all regions. Remove the error-embed view from the region pin list and create DSN based routing. I don't love this solution, but it should be robust enough to handle the scenarios that customers are having problems with.

Refs HC-1182
Refs getsentry/sentry-javascript#11813

The browser SDK is still creating URLs for the error-embed views using
`sentry.io` for customers in all regions. Remove the error-embed view
from the region pin list and create DSN based routing. I don't love this
solution, but it should be robust enough to handle the scenarios that
customers are having problems with.

Refs HC-1182
Refs getsentry/sentry-javascript#11813
@markstory markstory requested a review from a team as a code owner April 26, 2024 21:47
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 26, 2024
try:
parsed = urlparse(dsn)
except Exception:
return None
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth tracking all the return None cases with a metric or log entry?


app_segments = app_host.split(".")
host_segments = host.split(".")
if len(host_segments) - len(app_segments) < 3:
Copy link
Member

Choose a reason for hiding this comment

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

Just to confirm, if we're running in monolith mode we'd never hit this code path? Thinking about the case for self-hosted where domains might be weird

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the apigateway middleware is only active when the application is in control mode.

@markstory markstory merged commit cdb21c0 into master Apr 29, 2024
47 of 48 checks passed
@markstory markstory deleted the fix-embed-page branch April 29, 2024 15:43
Copy link

sentry-io bot commented May 8, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ RequestTimeout: Proxied request timed out /api/embed/error-page/ View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants