---
title: "Connect Dart with its Sentry SDK"
description: "Your Dart app keeps its Sentry SDK. Xovris gives it your project’s DSN, and every error it sends becomes a Xovris issue with its stack and release."
url: https://xovris.ai/docs/connect/sdk/dart/
---

# Connect Dart with its Sentry SDK

Your Dart app keeps its Sentry SDK. Xovris gives it your project’s DSN, and every error it sends becomes a Xovris issue with its stack and release.

```sh
dart pub add sentry
```

Already installed? Your code stays as it is – the DSN is the one change.

## Start it

Put this at the top of main():

```dart
import 'dart:io';
import 'package:sentry/sentry.dart';

Future<void> main() async {
  await Sentry.init((options) => options.dsn = Platform.environment['SENTRY_DSN']);
}
```

It reads SENTRY_DSN, so your project’s address never sits in your code.

## Your project’s DSN

Xovris finds the SDK in your pubspec.yaml, creates your project’s address and writes it as SENTRY_DSN in your env file, after showing you the change. It then sends a test event and waits until it is stored. In the project, run:

```sh
npx xovris@latest init
```

## See the first error

Send one from anywhere your app runs:

```dart
await Sentry.captureException(Exception('first error for Xovris'));
```

Capture one error with the SDK’s own call and it appears as a Xovris issue:

- Errors and their stack traces, grouped into issues
- Messages you capture
- The release each event names

## Its frameworks

The same DSN covers every framework this SDK’s own integrations reach:

Flutter.

## What Xovris has run

Driven with the real SDK: sentry 10.4.0 from pub.dev (the core sentry_flutter runs on) on the Dart SDK 3.14, captured 2026-11-14 (a chunked gzip envelope). Its own bytes are replayed into Xovris on every change.

Every option the SDK has is in its own documentation: https://docs.sentry.io/platforms/dart/

