We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90ae61a commit ae422ebCopy full SHA for ae422eb
ui/src/hooks/useJsErrorTracker.tsx
@@ -1,13 +1,10 @@
1
-import { TrackJS } from 'trackjs';
2
import { datadogRum } from '@datadog/browser-rum';
3
4
const useJsErrorTracker = () => {
5
const addMetadata = (key: string, value: string) => {
6
- datadogRum.setGlobalContextProperty(key, value);
7
- TrackJS.addMetadata(key, value);
+ datadogRum.setGlobalContextProperty(key, value);
8
};
9
const trackError = (error: any) => {
10
- TrackJS.track(error);
11
//error tracking by dataDog RUM
12
datadogRum.addError(error);
13
0 commit comments