Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Jan 20, 2022

This PR updates the docs for configuring the ember SDK.
It started with some build warnings, that actually lead me on the path to figure out that some of my sentry configuration doesn't work as expected.

See the related issue here:
embroider-build/embroider#1082 (comment)

Basically, all config you put in config/environment.js will be stored as macro config for the addon. However, both the config/environment.js as well as the macro config are actually serialized, so any non-JSON-compatible stuff will be more or less silently lost. So for example, a regex in your config (which I was using for the ignoreErrors or blacklistUrls configs) will actually not work when being put there.

It is already possible to pass this config manually to the InitSentryForEmber method, so this PR only updates the readme to make this clear and shortly explain that using non-scalar config in config/environment.js will not work as expected.

@AbhiPrasad
Copy link
Member

We should probably update https://docs.sentry.io/platforms/javascript/guides/ember/ as well, thoughts @k-fish?

@github-actions
Copy link
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@mydea mydea force-pushed the fn/ember-config-docs branch from 3d025e2 to b772a35 Compare February 11, 2022 08:26
@mydea
Copy link
Member Author

mydea commented Feb 11, 2022

I just rebased it on master, should be up to date again.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) February 11, 2022 13:21
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Thank you!

@AbhiPrasad AbhiPrasad merged commit 4ff68c1 into getsentry:master Feb 11, 2022
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.

2 participants