sentry_client 4.2.1

  • Installing
  • Versions
  • 64

pub Build Status codecov documentation

The Dart library for sending data to the Sentry server.

Usage in browser:

var client = new SentryClientBrowser(

client.write(new SentryPacket());

Usage on server:

var client = new SentryClientServer(

client.write(new SentryPacket());



  • Fix the uuid dependence to ^1.0.0 - compatible with Dart 2



  • Update the linter rules & remove nulls from the request


  • Prepare for dart 2.0
  • Remove 1.21.1 checks
  • Change SentrySDK (lib/api_data/sentry_sdk.dart) for new versions!


  • Correct the build shield


  • The integration with and


  • The authors format was fixed


  • The first open-source version

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  sentry_client: ^4.2.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:sentry_client/sentry_client.dart';
Version Uploaded Documentation Archive
4.2.1 Aug 3, 2018 Go to the documentation of sentry_client 4.2.1 Download sentry_client 4.2.1 archive
4.2.0 Aug 1, 2018 Go to the documentation of sentry_client 4.2.0 Download sentry_client 4.2.0 archive
4.1.0 Feb 11, 2018 Go to the documentation of sentry_client 4.1.0 Download sentry_client 4.1.0 archive
4.0.4 Feb 11, 2018 Go to the documentation of sentry_client 4.0.4 Download sentry_client 4.0.4 archive
4.0.3 Aug 13, 2017 Go to the documentation of sentry_client 4.0.3 Download sentry_client 4.0.3 archive
4.0.1 Aug 9, 2017 Go to the documentation of sentry_client 4.0.1 Download sentry_client 4.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:sentry_client/sentry_client.dart.

Health suggestions

Format lib/api_data/sentry_exception.dart.

Run dartfmt to format lib/api_data/sentry_exception.dart.

Format lib/api_data/sentry_packet.dart.

Run dartfmt to format lib/api_data/sentry_packet.dart.

Format lib/api_data/sentry_request.dart.

Run dartfmt to format lib/api_data/sentry_request.dart.

Fix additional 11 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/api_data/sentry_sdk.dart (Run dartfmt to format lib/api_data/sentry_sdk.dart.)
  • lib/api_data/sentry_stacktrace.dart (Run dartfmt to format lib/api_data/sentry_stacktrace.dart.)
  • lib/api_data/sentry_stacktrace_frame.dart (Run dartfmt to format lib/api_data/sentry_stacktrace_frame.dart.)
  • lib/api_data/sentry_user.dart (Run dartfmt to format lib/api_data/sentry_user.dart.)
  • lib/http_adaptors/http_adapter.dart (Run dartfmt to format lib/http_adaptors/http_adapter.dart.)
  • lib/http_adaptors/http_adapter_browser.dart (Run dartfmt to format lib/http_adaptors/http_adapter_browser.dart.)
  • lib/http_adaptors/http_adapter_server.dart (Run dartfmt to format lib/http_adaptors/http_adapter_server.dart.)
  • lib/sentry_client.dart (Run dartfmt to format lib/sentry_client.dart.)
  • lib/sentry_client_browser.dart (Run dartfmt to format lib/sentry_client_browser.dart.)
  • lib/sentry_client_server.dart (Run dartfmt to format lib/sentry_client_server.dart.)
  • lib/sentry_dsn.dart (Run dartfmt to format lib/sentry_dsn.dart.)

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use sentry_client.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.36.0 <3.0.0
uuid ^1.0.0 1.0.3
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
typed_data 1.1.6
Dev dependencies
build_runner >=0.9.1 <2.0.0
build_test >=0.10.2 <2.0.0
build_web_compilers >=0.4.0 <2.0.0
mockito ^3.0.0
quiver ^2.0.0
test ^1.3.0