Sends a telemetry event to both the CW and toolkit API's. If the clients do not exist, then telemetry is not sent. See [TelemetryClient::new] for which conditions the clients are created for.
(&self, event: Event)
| 584 | /// |
| 585 | /// See [TelemetryClient::new] for which conditions the clients are created for. |
| 586 | async fn send_event(&self, event: Event) { |
| 587 | self.send_cw_telemetry_event(&event).await; |
| 588 | self.send_telemetry_toolkit_metric(event).await; |
| 589 | } |
| 590 | |
| 591 | async fn send_cw_telemetry_event(&self, event: &Event) { |
| 592 | let Some(codewhisperer_client) = self.codewhisperer_client.clone() else { |
no test coverage detected