Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which package are you using?
@sentry/ember
SDK Version
7.0.0
Framework Version
No response
Link to Sentry event
No response
Steps to Reproduce
Compare setup instructions in Configure chapter of https://docs.sentry.io/platforms/javascript/guides/ember/#configure with setup instructions in Usage chapter of https://github.com/getsentry/sentry-javascript/tree/master/packages/ember#usage. The first one is also shown in the application when choosing Ember as framework for a new project.
Expected Result
I expect that the instructions how to use @sentry/ember
package are the same on docs.sentry.io, in the applicaiton and in the readme of the NPM package.
Actual Result
Documentation at https://docs.sentry.io/platforms/javascript/guides/ember/#configure asks me to put the following code in the app/app.js
:
import * as Sentry from "@sentry/ember";
Sentry.init({
dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production,
tracesSampleRate: 1.0,
});
The documentation shown in the application when selecting Ember for a new project is the same beside actually containing the DSN for the project.
README of the NPM package asks me to put the following code in the same file:
import { InitSentryForEmber } from '@sentry/ember';
InitSentryForEmber();
Additionally it asks me to put configuration for Sentry in config/environment.js
.
The documentation in the NPM package seems to be more up to date. I followed that one successfully. But that is only gut feeling. I didn't verified if the other instructions are working as well with latest version of the SDK. And I did not had a look which documentation is newer.