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
@@ -82,6 +82,9 @@ class BaseActionCableConnector {
onReceived = ({ event, data } = {}) => {
if (this.isAValidEvent(data)) {
if (this.events[event] && typeof this.events[event] === 'function') {
window.logrelic(
`processing actioncable ${event} with ${data} at ${Number(Date.now())}`
);
this.events[event](data);
}
}