add ddog rum
This commit is contained in:
parent
38d0244793
commit
a56ff25105
@ -8,6 +8,7 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@datadog/browser-rum": "^4.7.0",
|
||||||
"caniuse-lite": "^1.0.30001325",
|
"caniuse-lite": "^1.0.30001325",
|
||||||
"core-js": "^3.16.2",
|
"core-js": "^3.16.2",
|
||||||
"pretty-checkbox-vue": "^1.1.9",
|
"pretty-checkbox-vue": "^1.1.9",
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
import FullScreenInput from './components/FullScreenInput.vue'
|
import FullScreenInput from './components/FullScreenInput.vue'
|
||||||
import Help from './components/Help.vue';
|
import Help from './components/Help.vue';
|
||||||
// import Vue from 'vue'
|
// import Vue from 'vue'
|
||||||
|
import { datadogRum } from '@datadog/browser-rum';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Help, FullScreenInput },
|
components: { Help, FullScreenInput },
|
||||||
@ -134,6 +135,17 @@ export default {
|
|||||||
this.$i18n.locale = userLang.split('-')[0]
|
this.$i18n.locale = userLang.split('-')[0]
|
||||||
}
|
}
|
||||||
this.detectColorScheme()
|
this.detectColorScheme()
|
||||||
|
datadogRum.init({
|
||||||
|
applicationId: '076b1a5e-16a9-44eb-b320-27afd32c57a5',
|
||||||
|
clientToken: 'pub1cc4d0d6ea0a7235aa1eab86e7a192d4',
|
||||||
|
site: 'datadoghq.com',
|
||||||
|
service:'bang-frontend',
|
||||||
|
sampleRate: 100,
|
||||||
|
trackInteractions: true,
|
||||||
|
defaultPrivacyLevel: 'mask-user-input'
|
||||||
|
});
|
||||||
|
|
||||||
|
datadogRum.startSessionReplayRecording();
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.$workbox) {
|
if (this.$workbox) {
|
||||||
|
@ -835,6 +835,26 @@
|
|||||||
"@babel/helper-validator-identifier" "^7.15.7"
|
"@babel/helper-validator-identifier" "^7.15.7"
|
||||||
to-fast-properties "^2.0.0"
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
|
"@datadog/browser-core@4.7.0":
|
||||||
|
version "4.7.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@datadog/browser-core/-/browser-core-4.7.0.tgz#3b890f332c564f26c025c6dce295100808373408"
|
||||||
|
integrity sha512-pzFcyurQGQ/QG/ZdGyel/Lf3hhZAa9WyN0Cxn0KyfSCKnyeISbSss1Xy37pSPPOYStkPSueWfaBM8s4s4Rgkmw==
|
||||||
|
|
||||||
|
"@datadog/browser-rum-core@4.7.0":
|
||||||
|
version "4.7.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@datadog/browser-rum-core/-/browser-rum-core-4.7.0.tgz#dc4d9a9718d0a474e8898d633223391b1be3a8e7"
|
||||||
|
integrity sha512-FNd/ZKmw7QshtorqeSkPy5eJte/7UxjFn91TIO671fftcbcov1mvT81Qi6jWmKqfnL0OfUsQUITLyL3rizx4rw==
|
||||||
|
dependencies:
|
||||||
|
"@datadog/browser-core" "4.7.0"
|
||||||
|
|
||||||
|
"@datadog/browser-rum@^4.7.0":
|
||||||
|
version "4.7.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@datadog/browser-rum/-/browser-rum-4.7.0.tgz#9cfd75b5d592a4648ce0078fb335685945e4bfc6"
|
||||||
|
integrity sha512-Hy2jTsYKZaeQK3TkFwKzLcKOtlxtQuKTAc43aQfTfFiu7fgzPGIOcb+XvJeL+QIsRZltjs4dlq9Sdsdc7UWVMw==
|
||||||
|
dependencies:
|
||||||
|
"@datadog/browser-core" "4.7.0"
|
||||||
|
"@datadog/browser-rum-core" "4.7.0"
|
||||||
|
|
||||||
"@hapi/address@2.x.x":
|
"@hapi/address@2.x.x":
|
||||||
version "2.1.4"
|
version "2.1.4"
|
||||||
resolved "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz"
|
resolved "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz"
|
||||||
|
Loading…
Reference in New Issue
Block a user