Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RUMF-609] use export from rum/logs #7883

Merged
merged 1 commit into from
Jul 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions content/en/logs/log_collection/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<DATADOG_CLIENT_TOKEN>',
Expand All @@ -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: '<DATADOG_CLIENT_TOKEN>',
Expand Down
3 changes: 1 addition & 2 deletions content/en/real_user_monitoring/faq/proxy_rum_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<DATADOG_APPLICATION_ID>',
Expand Down
6 changes: 2 additions & 4 deletions content/en/real_user_monitoring/installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<DATADOG_APPLICATION_ID>',
Expand All @@ -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: '<DATADOG_APPLICATION_ID>',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<DATADOG_APPLICATION_ID>',
Expand Down