add username in rum
This commit is contained in:
parent
ce0611cf8d
commit
0574117028
@ -149,7 +149,7 @@ export default {
|
|||||||
defaultPrivacyLevel: 'allow',
|
defaultPrivacyLevel: 'allow',
|
||||||
proxyUrl: (Vue.config.devtools ? `http://${window.location.hostname}:5001` : window.location.origin) + '/ddproxy',
|
proxyUrl: (Vue.config.devtools ? `http://${window.location.hostname}:5001` : window.location.origin) + '/ddproxy',
|
||||||
});
|
});
|
||||||
|
datadogRum.setUser({name: localStorage.getItem('username')})
|
||||||
datadogRum.startSessionReplayRecording();
|
datadogRum.startSessionReplayRecording();
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
import Card from '@/components/Card.vue'
|
import Card from '@/components/Card.vue'
|
||||||
import TinyHand from '@/components/TinyHand.vue'
|
import TinyHand from '@/components/TinyHand.vue'
|
||||||
// import Lobby from './components/Lobby.vue'
|
// import Lobby from './components/Lobby.vue'
|
||||||
|
import { datadogRum } from '@datadog/browser-rum';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
@ -125,6 +126,7 @@ export default {
|
|||||||
this.didSetUsername = true
|
this.didSetUsername = true
|
||||||
localStorage.setItem('username', this.username)
|
localStorage.setItem('username', this.username)
|
||||||
this.$socket.emit('set_username', {name:this.username})
|
this.$socket.emit('set_username', {name:this.username})
|
||||||
|
datadogRum.setUser({name: localStorage.getItem('username')})
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user