From 41266eb48dd951cb1b32ac95bbd425ba0b3f544f Mon Sep 17 00:00:00 2001 From: Bastien Caudan Date: Thu, 25 Feb 2021 09:46:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Doc:=20remove=20resourceSampleRa?= =?UTF-8?q?te=20(#747)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No reason to promote this configuration parameter since it is not aligned with billing. It only confuses customers and generate support questions. --- packages/core/src/domain/configuration.ts | 2 +- packages/rum/README.md | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/core/src/domain/configuration.ts b/packages/core/src/domain/configuration.ts index 7d621f7ab7..deae258571 100644 --- a/packages/core/src/domain/configuration.ts +++ b/packages/core/src/domain/configuration.ts @@ -43,7 +43,7 @@ export interface UserConfiguration { internalMonitoringApiKey?: string allowedTracingOrigins?: Array sampleRate?: number - resourceSampleRate?: number + resourceSampleRate?: number // deprecated datacenter?: Datacenter // deprecated site?: string enableExperimentalFeatures?: string[] diff --git a/packages/rum/README.md b/packages/rum/README.md index 7f86b508a3..2a85b2d19d 100644 --- a/packages/rum/README.md +++ b/packages/rum/README.md @@ -116,7 +116,6 @@ window.DD_RUM.init({ applicationId: 'XXX', clientToken: 'XXX', site: 'datadoghq.com', - resourceSampleRate: 100, sampleRate: 100, }) ``` @@ -136,7 +135,6 @@ The following parameters are available: | `env` | String | No | | The application’s environment, for example: prod, pre-prod, staging, etc. | | `version` | String | No | | The application’s version, for example: 1.2.3, 6c44da20, 2020.02.13, etc. | | `trackInteractions` | Boolean | No | `false` | Enables [automatic collection of users actions][6]. | -| `resourceSampleRate` | Number | No | `100` | The percentage of tracked sessions with resources collection: `100` for all, `0` for none. | | `sampleRate` | Number | No | `100` | The percentage of sessions to track: `100` for all, `0` for none. Only tracked sessions send rum events. | | `silentMultipleInit` | Boolean | No | `false` | Initialization fails silently if Datadog's RUM is already initialized on the page. | | `proxyHost` | String | No | | Optional proxy host (ex: www.proxy.com), see the full [proxy setup guide][7] for more information. | @@ -159,7 +157,6 @@ init(configuration: { applicationId: string, clientToken: string, site?: string, - resourceSampleRate?: number sampleRate?: number, silentMultipleInit?: boolean, trackInteractions?: boolean,