diff --git a/packages/logs/README.md b/packages/logs/README.md index 87d6603141..2ce3ff8e20 100644 --- a/packages/logs/README.md +++ b/packages/logs/README.md @@ -117,16 +117,18 @@ window.DD_LOGS.init({ The following parameters are available to configure the Datadog browser logs SDK to send logs to Datadog: -| Parameter | Type | Required | Default | Description | -| --------------------- | ------- | -------- | --------------- | -------------------------------------------------------------------------------------------------------- | -| `clientToken` | String | Yes | | A [Datadog client token][2]. | -| `site` | String | Yes | `datadoghq.com` | The Datadog site of your organization. US: `datadoghq.com`, EU: `datadoghq.eu` | -| `service` | String | No | | The service name for your application. | -| `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. | -| `forwardErrorsToLogs` | Boolean | No | `true` | Set to `false` to stop forwarding console.error logs, uncaught exceptions and network errors to Datadog. | -| `sampleRate` | Number | No | `100` | The percentage of sessions to track: `100` for all, `0` for none. Only tracked sessions send logs. | -| `silentMultipleInit` | Boolean | No | | Prevent logging errors while having multiple init. | +| Parameter | Type | Required | Default | Description | +| --------------------------- | ------- | -------- | --------------- | -------------------------------------------------------------------------------------------------------- | +| `clientToken` | String | Yes | | A [Datadog client token][2]. | +| `site` | String | Yes | `datadoghq.com` | The Datadog site of your organization. US: `datadoghq.com`, EU: `datadoghq.eu` | +| `service` | String | No | | The service name for your application. | +| `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. | +| `forwardErrorsToLogs` | Boolean | No | `true` | Set to `false` to stop forwarding console.error logs, uncaught exceptions and network errors to Datadog. | +| `sampleRate` | Number | No | `100` | The percentage of sessions to track: `100` for all, `0` for none. Only tracked sessions send logs. | +| `silentMultipleInit` | Boolean | No | | Prevent logging errors while having multiple init. | +| `useAlternateIntakeDomains` | Boolean | No | `false` | Use the new intake domains for sending Logs data. Make sure to update [CSP][6] headers before enabling. | +| `intakeApiVersion` | Number | No | `1` | Set to `2` to use the new intake API for sending Logs data. | Options that must have a matching configuration when using the `RUM` SDK: @@ -652,3 +654,4 @@ window.DD_LOGS && DD_LOGS.logger.setHandler(['', '']) [3]: https://www.npmjs.com/package/@datadog/browser-logs [4]: https://github.com/DataDog/browser-sdk/blob/main/packages/logs/BROWSER_SUPPORT.md [5]: /real_user_monitoring/guide/enrich-and-control-rum-data/ +[6]: /real_user_monitoring/faq/content_security_policy/ diff --git a/packages/rum/README.md b/packages/rum/README.md index f3ba3a8d17..3974580bee 100644 --- a/packages/rum/README.md +++ b/packages/rum/README.md @@ -219,6 +219,16 @@ Use a secure session cookie. This disables RUM events sent on insecure (non-HTTP **Default**:`false`
Use a secure cross-site session cookie. This allows the RUM SDK to run when the site is loaded from another one (iframe). Implies `useSecureSessionCookie`. +`useAlternateIntakeDomains` +: Optional
+**Default**:`false`
+Use the new intake domains for sending RUM and Session Replay data. Make sure to update [CSP][11] headers before enabling. + +`intakeApiVersion` +: Optional
+**Default**:`1`
+Set to `2` to use the new intake API for sending RUM and Session Replay data. + #### Example Init must be called to start the tracking: @@ -251,3 +261,4 @@ init(configuration: { [8]: https://github.com/DataDog/browser-sdk/blob/main/packages/rum/BROWSER_SUPPORT.md [9]: https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions#declaring-a-name-for-click-actions [10]: https://docs.datadoghq.com/real_user_monitoring/browser/modifying_data_and_context/?tab=npm#override-default-rum-view-names +[11]: https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy/