Skip to content

Edge runtime regions not working when integrating with Sentry #47404

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

Closed
Cow258 opened this issue Apr 14, 2023 · 4 comments
Closed

Edge runtime regions not working when integrating with Sentry #47404

Cow258 opened this issue Apr 14, 2023 · 4 comments

Comments

@Cow258
Copy link

Cow258 commented Apr 14, 2023

Environment

SaaS (https://sentry.io/)

Version

No response

Link

No response

DSN

https://756fac6d7d514f5db62c7f0bc5a0f53e@o4504872119566336.ingest.sentry.io/4504872145059840

Steps to Reproduce

Link to the code that reproduces this issue

https://github.com/Cow258/edge-bug-demo

To Reproduce

  1. Deploy to Vercel
  2. Goto https://****.vercel/api/hello
  3. Open DevTool for the response headers
  4. You will find the region is different from 'sin1'

https://edge-bug-demo.vercel.app/api/hello

Expected Result

Expected Behavior

The region should be as same as the config when integrating with Sentry
image

Actual Result

I set the regions to ['sin1'], but it still global after deployed to Vercel and integrating with Sentry

export const config = {
  runtime: 'edge',
  regions: ['sin1'],
}

image

@getsantry
Copy link
Contributor

getsantry bot commented Apr 14, 2023

Assigning to @getsentry/support for routing, due by Monday, April 17th at 10:58 am (sfo). ⏲️

@Cow258
Copy link
Author

Cow258 commented Apr 14, 2023

next.js/#48375

@AbhiPrasad
Copy link
Member

Hey @Cow258, thanks for writing in! This is a known issue - we are tracking things related to it in this GH issue: getsentry/sentry-javascript#7450, so closing this issue since it's duplicate.

@AbhiPrasad AbhiPrasad closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2023
@AbhiPrasad
Copy link
Member

Until this is fixed, you can use the excludeServerRoutes option to stop adding Sentry instrumentation to your edge routes to unblock yourself.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants