-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
RegEx in tracingOrigins config breaks ember build #5903
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
Comments
Hey @dagroe, the config will break since it only accepts serializable options. To have more advanced options, you'll probably need to initialize Sentry yourself as per https://docs.sentry.io/platforms/javascript/guides/ember/#configure cc @k-fish. |
Hi @AbhiPrasad, sorry I forgot to add that the above RegEx is suggested in the sentry docs:
|
Ah good catch - we need to make sure this doesn't break. |
It should be fine using the regex as is recommended in the docs, using @AbhiPrasad, we should probably have a deprecated warning for passing the |
While I think it is a good idea to deprecate |
@mydea yeah that's not a bad idea. For context there is a Thoughts? |
I'd say both are possible. We can also leverage (=copy) the validation that also happens in embroider (which, incidentally, I wrote there for exactly this issue 😂 see embroider-build/embroider#1083). but, as you can see there, this is not entirely straightforward, and would also kind of duplicate all of this functionality/checks. But might be a bit more "user friendly" this way, as theoretically you may also want to set other config based on env (e.g. debug, or similar). Anyhow, for me both approaches seem OK! The more user friendly would be to validate it and throw a nicer error message, I guess. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/ember
SDK Version
7.14.1
Framework Version
ember 4.7.0
Link to Sentry event
No response
Steps to Reproduce
ember new ember-quickstart --lang en
ember install @sentry/ember
config/environment.js
, make sure to include RegEx intracingOrigins
, e.g.ember serve
Expected Result
ember builds and runs app
Actual Result
build fails with error
The text was updated successfully, but these errors were encountered: