MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / send_event

Method send_event

crates/chat-cli/src/telemetry/mod.rs:586–589  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 1

newMethod · 0.80

Calls 2

Tested by

no test coverage detected