From 95a4f9aa0fac2c189cd0252cba66eef385df9b29 Mon Sep 17 00:00:00 2001 From: Bastien Caudan Date: Wed, 1 Jul 2020 16:19:54 +0200 Subject: [PATCH] [RUMF-609] use export from rum/logs (#7883) --- content/en/logs/log_collection/javascript.md | 6 ++---- content/en/real_user_monitoring/faq/proxy_rum_data.md | 3 +-- content/en/real_user_monitoring/installation/_index.md | 6 ++---- .../installation/advanced_configuration.md | 3 +-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/content/en/logs/log_collection/javascript.md b/content/en/logs/log_collection/javascript.md index 058ca45bcbf2a..f27c72b01d344 100644 --- a/content/en/logs/log_collection/javascript.md +++ b/content/en/logs/log_collection/javascript.md @@ -38,8 +38,7 @@ After adding [`@datadog/browser-logs`][3] to your `package.json` file, initializ {{< site-region region="us" >}} ```javascript -import { Datacenter } from '@datadog/browser-core'; -import { datadogLogs } from '@datadog/browser-logs'; +import { Datacenter, datadogLogs } from '@datadog/browser-logs'; datadogLogs.init({ clientToken: '', @@ -53,8 +52,7 @@ datadogLogs.init({ {{< site-region region="eu" >}} ```javascript -import { Datacenter } from '@datadog/browser-core'; -import { datadogLogs } from '@datadog/browser-logs'; +import { Datacenter, datadogLogs } from '@datadog/browser-logs'; datadogLogs.init({ clientToken: '', diff --git a/content/en/real_user_monitoring/faq/proxy_rum_data.md b/content/en/real_user_monitoring/faq/proxy_rum_data.md index cd15cc5398f67..ce91ed9687524 100644 --- a/content/en/real_user_monitoring/faq/proxy_rum_data.md +++ b/content/en/real_user_monitoring/faq/proxy_rum_data.md @@ -17,8 +17,7 @@ When you set the `proxyHost` [initialization parameter][1], all RUM data is sent {{% tab "NPM" %}} ```javascript -import { Datacenter } from '@datadog/browser-core'; -import { datadogRum } from '@datadog/browser-rum'; +import { Datacenter, datadogRum } from '@datadog/browser-rum'; datadogRum.init({ applicationId: '', diff --git a/content/en/real_user_monitoring/installation/_index.md b/content/en/real_user_monitoring/installation/_index.md index add347b3125cd..fda19c48577c3 100644 --- a/content/en/real_user_monitoring/installation/_index.md +++ b/content/en/real_user_monitoring/installation/_index.md @@ -33,8 +33,7 @@ After adding [`@datadog/browser-rum`][4] to your `package.json` file, initialize {{% tab "US" %}} ```javascript -import { Datacenter } from '@datadog/browser-core'; -import { datadogRum } from '@datadog/browser-rum'; +import { Datacenter, datadogRum } from '@datadog/browser-rum'; datadogRum.init({ applicationId: '', @@ -48,8 +47,7 @@ datadogRum.init({ {{% tab "EU" %}} ```javascript -import { Datacenter } from '@datadog/browser-core'; -import { datadogRum } from '@datadog/browser-rum'; +import { Datacenter, datadogRum } from '@datadog/browser-rum'; datadogRum.init({ applicationId: '', diff --git a/content/en/real_user_monitoring/installation/advanced_configuration.md b/content/en/real_user_monitoring/installation/advanced_configuration.md index c39099bef70ab..1f86537d3da25 100644 --- a/content/en/real_user_monitoring/installation/advanced_configuration.md +++ b/content/en/real_user_monitoring/installation/advanced_configuration.md @@ -25,8 +25,7 @@ By default, no sampling is applied on the number of collected sessions. To apply {{% tab "NPM" %}} ```javascript -import { Datacenter } from '@datadog/browser-core'; -import { datadogRum } from '@datadog/browser-rum'; +import { Datacenter, datadogRum } from '@datadog/browser-rum'; datadogRum.init({ applicationId: '',