sentry_client 4.2.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 69

pub Build Status codecov documentation

The Dart library for sending data to the Sentry server. #

Usage in browser: #

var client = new SentryClientBrowser(
  SentryDsn.fromString('https://123456789abcdef123456789abcdef12@sentry.local/1')
);

client.write(new SentryPacket());

Usage on server: #

var client = new SentryClientServer(
  SentryDsn.fromString('https://123456789abcdef123456789abcdef12@sentry.local/1')
);

client.write(new SentryPacket());

Changelog #

4.2.1 #

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

4.2.0 #

4.1.0 #

  • Update the linter rules & remove nulls from the request

4.0.4 #

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

4.0.3 #

  • Correct the build shield

4.0.2 #

  • The integration with travis-ci.com and codecov.io

4.0.1 #

  • The authors format was fixed

4.0.0 #

  • The first open-source version

Use this package as a library

1. Depend on it

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


dependencies:
  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
Popularity:
Describes how popular the package is relative to other packages. [more]
46
Health:
Code health derived from static analysis. [more]
97
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
85
Overall:
Weighted score of the above. [more]
69
Learn more about scoring.

We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13

Platforms

Detected platforms: Flutter, web, other

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

Health suggestions

Fix lib/http_adaptors/http_adapter_browser.dart. (-1 points)

Analysis of lib/http_adaptors/http_adapter_browser.dart reported 2 hints:

line 27 col 34: Use = to separate a named parameter from its default value.

line 29 col 27: Use = to separate a named parameter from its default value.

Fix lib/api_data/sentry_stacktrace_frame.dart. (-0.50 points)

Analysis of lib/api_data/sentry_stacktrace_frame.dart reported 1 hint:

line 81 col 15: Use = to separate a named parameter from its default value.

Fix lib/sentry_client_browser.dart. (-0.50 points)

Analysis of lib/sentry_client_browser.dart reported 1 hint:

line 7 col 78: Use = to separate a named parameter from its default value.

Fix additional 11 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • lib/sentry_client_server.dart (1 hint)
  • lib/sentry_dsn.dart (1 hint)
  • lib/api_data/sentry_exception.dart (Run dartfmt to format lib/api_data/sentry_exception.dart.)
  • lib/api_data/sentry_packet.dart (Run dartfmt to format lib/api_data/sentry_packet.dart.)
  • lib/api_data/sentry_request.dart (Run dartfmt to format lib/api_data/sentry_request.dart.)
  • 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_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_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.)

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and sentry_client.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-5 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.36.0 <3.0.0
uuid ^1.0.0 1.0.3 2.0.0
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.1.1
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