Skip to content

Different installation instructions in documentation for Ember and readme for @sentry/ember package #5182

Closed
@jelhan

Description

@jelhan

Is there an existing issue for this?

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions