To get a DSN, use the following steps:

Create an account with Sentry.

Log in to the account.

Create a new Flutter project.

Copy the code snippet that includes the DSN.

2. Import the Sentry package

Import the sentry_flutter package into the app.
The sentry package makes it easier to send
error reports to the Sentry error tracking service.

dependencies

sentry_flutter

<latest_version>

3. Initialize the Sentry SDK

Initialize the SDK to capture different unhandled errors automatically:

Alternatively, you can pass the DSN to Flutter using the dart-define tag:

What does that give me?

-dart-define

SENTRY_DSN

=https://example@sentry.io/example

What does that give me?