EosMetrics.emtr-event-recorder

The event recorder asynchronously sends metric events to the metric system daemon via D-Bus. The system daemon then delivers metrics to the server on a best-effort basis. No feedback is given regarding the outcome of delivery. The event recorder is thread-safe.

This API may be called from JavaScript as follows.

Event submission may be disabled at runtime by setting the `EOS_DISABLE_METRICS` environment variable to the empty string or `1`. This is intended to be set when running unit tests in other modules, for example, to avoid submitting metrics from unit test runs. It will skip submitting metrics to the D-Bus daemon, but otherwise all eos-metrics functions will report success.