feat: log to new relic

This commit is contained in:
Shivam Mishra
2025-03-13 11:06:39 +05:30
parent 523291f5c3
commit 7ac40c8801
3 changed files with 37 additions and 0 deletions
@@ -229,6 +229,15 @@ export const mutations = {
Sentry.captureMessage('Conversation update mismatch');
});
window.logrelic(
`conversation update mismatch with incoming ${conversation} and stored ${selectedConversation}`,
{
customAttributes: {
conversation_id: conversation.id,
},
}
);
return;
}
@@ -245,6 +254,15 @@ export const mutations = {
Sentry.captureMessage('Conversation update overlap');
});
window.logrelic(
`conversation update overlap with incoming ${conversation} and stored ${selectedConversation}`,
{
customAttributes: {
conversation_id: conversation.id,
},
}
);
}
const { messages, ...updates } = conversation;