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

Method send_error_telemetry

crates/chat-cli/src/cli/chat/mod.rs:3783–3805  ·  view source on GitHub ↗
(
        &self,
        os: &Os,
        reason: String,
        reason_desc: Option<String>,
        status_code: Option<u16>,
    )

Source from the content-addressed store, hash-verified

3781 }
3782
3783 async fn send_error_telemetry(
3784 &self,
3785 os: &Os,
3786 reason: String,
3787 reason_desc: Option<String>,
3788 status_code: Option<u16>,
3789 ) {
3790 let md = self.user_turn_request_metadata.last();
3791 os.telemetry
3792 .send_response_error(
3793 &os.database,
3794 self.conversation.conversation_id().to_owned(),
3795 self.conversation.context_message_length(),
3796 TelemetryResult::Failed,
3797 Some(reason),
3798 reason_desc,
3799 status_code,
3800 md.and_then(|md| md.request_id.clone()),
3801 md.map(|md| md.message_id.clone()),
3802 )
3803 .await
3804 .ok();
3805 }
3806
3807 pub async fn send_slash_command_telemetry(
3808 &self,

Callers 1

nextMethod · 0.80

Calls 5

send_response_errorMethod · 0.80
mapMethod · 0.80
conversation_idMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected