* Initializes the insights client in the background by sending the startup event and scheduling status events at * regular intervals. * @returns {undefined}
()
| 79 | * @returns {undefined} |
| 80 | */ |
| 81 | init() { |
| 82 | this._enabled = this._client.options.monitorReporting.enabled && this._dseSupportsInsights(); |
| 83 | if (!this._enabled) { |
| 84 | return; |
| 85 | } |
| 86 | |
| 87 | promiseUtils.toBackground(this._init()); |
| 88 | } |
| 89 | |
| 90 | async _init() { |
| 91 | try { |
no test coverage detected