sentry 4.0.0-alpha.2 copy "sentry: ^4.0.0-alpha.2" to clipboard
sentry: ^4.0.0-alpha.2 copied to clipboard

outdated

A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart Native, and Flutter for mobile, web, and desktop.


Sentry SDK for Dart and Flutter #

package build pub likes popularity pub points
sentry build pub package likes popularity pub points

Versions

Versions ^4.0.0 are Prereleases and are under improvements/testing.

The current stable version is the Dart SDK, 3.0.1.

Usage

  • Sign up for a Sentry.io account and get a DSN at http://sentry.io.

  • Follow the installing instructions on pub.dev.

  • The code snippet below reflects the latest Prerelease version.

  • Initialize the Sentry SDK using the DSN issued by Sentry.io:

import 'dart:async';
import 'package:sentry/sentry.dart';

Future<void> main() async {
  await Sentry.init((options) {
    options.dsn = 'https://example@sentry.io/add-your-dsn-here';
    // For better groupping, change the 'example' below with your own App's package.
    options.addInAppInclude('example');
  });

  try {
    aMethodThatMightFail();
  } catch (exception, stackTrace) {
    await Sentry.captureException(
      exception,
      stackTrace: stackTrace,
    );
  }
}

void aMethodThatMightFail() {
  throw null;
}

Flutter SDK Integration

  • Check out the Flutter SDK with the Native integrations (Android/Apple).

Resources

  • Documentation
  • Forum
  • Discord
  • Stack Overflow
  • Twitter Follow
464
likes
0
pub points
97%
popularity

Publisher

verified publishersentry.io

A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart Native, and Flutter for mobile, web, and desktop.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, meta, stack_trace, uuid

More

Packages that depend on sentry