Skip to content

Commit ae422eb

Browse files
author
Edward Marzal
committed
removed trackjs
1 parent 90ae61a commit ae422eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/src/hooks/useJsErrorTracker.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
import { TrackJS } from 'trackjs';
21
import { datadogRum } from '@datadog/browser-rum';
32

43
const useJsErrorTracker = () => {
54
const addMetadata = (key: string, value: string) => {
6-
datadogRum.setGlobalContextProperty(key, value);
7-
TrackJS.addMetadata(key, value);
5+
datadogRum.setGlobalContextProperty(key, value);
86
};
97
const trackError = (error: any) => {
10-
TrackJS.track(error);
118
//error tracking by dataDog RUM
129
datadogRum.addError(error);
1310
};

0 commit comments

Comments
 (0)