diff --git a/app/components/chat/Chat.client.tsx b/app/components/chat/Chat.client.tsx index 3c08b306..6472c5a4 100644 --- a/app/components/chat/Chat.client.tsx +++ b/app/components/chat/Chat.client.tsx @@ -474,6 +474,7 @@ export const ChatImpl = memo((props: ChatProps) => { onStatus: onChatStatus, }); } catch (e) { + toast.error('Error resuming chat'); console.error('Error resuming chat', e); } diff --git a/app/lib/replay/ReplayProtocolClient.ts b/app/lib/replay/ReplayProtocolClient.ts index 44f09ebf..366348f6 100644 --- a/app/lib/replay/ReplayProtocolClient.ts +++ b/app/lib/replay/ReplayProtocolClient.ts @@ -1,3 +1,4 @@ +import { pingTelemetry } from '../hooks/pingTelemetry'; import { createInjectableFunction } from './injectable'; const replayWsServer = 'wss://dispatch.replay.io'; @@ -181,6 +182,7 @@ export class ProtocolClient { if (result) { info.deferred.resolve(result); } else if (error) { + pingTelemetry('ProtocolError', { method: info.method, error }); console.error('ProtocolError', info.method, id, error); info.deferred.reject(new ProtocolError(error)); } else {