Clear tracked analytics requests on errors

This commit is contained in:
evan-oai
2026-04-30 08:14:41 -07:00
parent 4a7a71be67
commit 3205b65d11

View File

@@ -607,6 +607,12 @@ impl OutgoingMessageSender {
request_id: ConnectionRequestId,
error: JSONRPCErrorError,
) {
self.analytics_events_client.track_error_response(
request_id.connection_id.0,
request_id.request_id.clone(),
error.clone(),
/*error_type*/ None,
);
let outgoing_message = OutgoingMessage::Error(OutgoingError {
id: request_id.request_id,
error,