mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:01:30 +00:00
8d6ad53c7e
Change-Id: I3a18670b6131f4e8c445217f1b302e64a74f591c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365489 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Devon Carew <devoncarew@google.com> |
||
---|---|---|
.. | ||
lib | ||
test | ||
analysis_options.yaml | ||
LICENSE | ||
OWNERS | ||
pubspec.yaml | ||
README.md |
telemetry
A library to facilitate reporting crash reports.
Crash reporting
To use the crash reporting functionality, import crash_reporting.dart
, and
create a new CrashReportSender
instance:
import 'package:telemetry/crash_reporting.dart';
void main() {
Analytics analytics = ...;
CrashReportSender sender = new CrashReportSender.prod(...);
try {
...
} catch (e, st) {
sender.sendReport(e, st);
}
}