From 1e68570af88ec5e6906c3032839073a11a173351 Mon Sep 17 00:00:00 2001 From: Bastien Caudan Date: Wed, 1 Jul 2020 10:07:42 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8[RUMF-609]=20export=20Datacenter=20enu?= =?UTF-8?q?m=20from=20logs=20and=20rum=20(#436)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/logs/README.md | 3 +-- packages/logs/src/index.ts | 1 + packages/rum/README.md | 3 +-- packages/rum/src/index.ts | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/logs/README.md b/packages/logs/README.md index 254f44d50c..49f7096c91 100644 --- a/packages/logs/README.md +++ b/packages/logs/README.md @@ -9,8 +9,7 @@ Datadog browser logs library. ### NPM ``` -import { Datacenter } from '@datadog/browser-core' -import { datadogLogs } from '@datadog/browser-logs' +import { Datacenter, datadogLogs } from '@datadog/browser-logs' datadogLogs.init({ clientToken: 'XXX', datacenter: Datacenter.US, diff --git a/packages/logs/src/index.ts b/packages/logs/src/index.ts index 7b7ef27417..beef2e5122 100644 --- a/packages/logs/src/index.ts +++ b/packages/logs/src/index.ts @@ -1,2 +1,3 @@ +export { Datacenter } from '@datadog/browser-core' export { StatusType, HandlerType, LoggerConfiguration, Logger, LogsMessage } from './logger' export { LogsUserConfiguration, Status, LogsGlobal, datadogLogs } from './logs.entry' diff --git a/packages/rum/README.md b/packages/rum/README.md index e10e173ca6..e32f42a197 100644 --- a/packages/rum/README.md +++ b/packages/rum/README.md @@ -7,8 +7,7 @@ Datadog browser rum library. ### NPM ``` -import { Datacenter } from '@datadog/browser-core' -import { datadogRum } from '@datadog/browser-rum' +import { Datacenter, datadogRum } from '@datadog/browser-rum' datadogRum.init({ applicationId: 'XXX', clientToken: 'XXX', diff --git a/packages/rum/src/index.ts b/packages/rum/src/index.ts index 8a2c1e541f..38b862e1ab 100644 --- a/packages/rum/src/index.ts +++ b/packages/rum/src/index.ts @@ -1,2 +1,3 @@ +export { Datacenter } from '@datadog/browser-core' export { RumUserConfiguration, RumGlobal, datadogRum, InternalContext } from './rum.entry' export { RumEventCategory, RumEvent, RumResourceEvent, RumViewEvent, RumUserActionEvent } from './rum'