New event added for sending analytics within package on errors (#229)

* Added new event + refactoring sentEvent on impl

* Fix tests + limiting one error event for logFileStats

* Make `Analytics` required for `LogHandler`

* Make error sent a field in class

* Events added for error handling in session handler

* Remove unnecessary `io` import

* Refactoring `legacyOptOut` to use loop

* Only expose `sentEvents` on the  `FakeAnalytics` instance

* Bump version

* Misc

* Convert to wip

* Pass send method instead of `Analytics` + nits

* `ErrorHandler` class created + used in session

* Use `ErrorHandler` with `LogHandler`

* Check telemetry status in `Session`

* Tests added for the survey handler

* Fix error

* Tests added for log handler exceptions

* Use set for sent error messages

* Test added to check for 2 unique error events
15 files changed
tree: aee3ae335a2bb3cc19a657fa2b86361235ea327d
  1. .github/
  2. pkgs/
  3. .gitignore
  4. CODEOWNERS
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
README.md

Overview

This repository is home to tooling related Dart packages. Generally, this means packages published through the tools.dart.dev publisher that don't naturally belong to other topic monorepos (like dart-lang/build, dart-lang/test, or dart-lang/shelf).

Packages

PackageDescriptionVersion
cli_configA library to take config values from configuration files, CLI arguments, and environment variables.pub package
extension_discoveryA convention and utilities for package extension discovery.pub package
graphsGraph algorithms that operate on graphs in any representationpub package
unified_analyticsA package for logging analytics for all Dart and Flutter related tooling to Google Analytics.pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.