Skip to content

Commit

Permalink
đź“ť Doc: remove resourceSampleRate (#747)
Browse files Browse the repository at this point in the history
No reason to promote this configuration parameter since it is not aligned with billing.
It only confuses customers and generate support questions.
  • Loading branch information
bcaudan authored Feb 25, 2021
1 parent 69d6170 commit 41266eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/domain/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface UserConfiguration {
internalMonitoringApiKey?: string
allowedTracingOrigins?: Array<string | RegExp>
sampleRate?: number
resourceSampleRate?: number
resourceSampleRate?: number // deprecated
datacenter?: Datacenter // deprecated
site?: string
enableExperimentalFeatures?: string[]
Expand Down
3 changes: 0 additions & 3 deletions packages/rum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ window.DD_RUM.init({
applicationId: 'XXX',
clientToken: 'XXX',
site: 'datadoghq.com',
resourceSampleRate: 100,
sampleRate: 100,
})
```
Expand All @@ -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. |
Expand All @@ -159,7 +157,6 @@ init(configuration: {
applicationId: string,
clientToken: string,
site?: string,
resourceSampleRate?: number
sampleRate?: number,
silentMultipleInit?: boolean,
trackInteractions?: boolean,
Expand Down

0 comments on commit 41266eb

Please sign in to comment.