(
&self,
os: &Os,
reason: String,
reason_desc: Option<String>,
status_code: Option<u16>,
)
| 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, |
no test coverage detected