open-index/open-npm huggingface dataset:
npm package: @motadata123/browser-logs
Description: Send logs to Datadog from web browser pages with the browser logs SDK.
Latest version: 6.21.0

# Browser Log Collection

Send logs to Datadog from web browser pages with the browser logs SDK.

See the [dedicated datadog documentation][1] for more details.

## Usage

After adding [`@motadata123/browser-logs`][2] to your `package.json` file, initialize it with:

```javascript
import { motadataLogs } from '@motadata123/browser-logs'

motadataLogs.init({
  clientToken: '<DATADOG_CLIENT_TOKEN>',
  site: '<DATADOG_SITE>',
  forwardErrorsToLogs: true,
  sessionSampleRate: 100,
})
```

After the Datadog browser logs SDK is initialized, send custom log entries directly to Datadog:

```javascript
import { motadataLogs } from '@motadata123/browser-logs'

motadataLogs.logger.info('Button clicked', { name: 'buttonName', id: 123 })

try {
  ...
  throw new Error('Wrong behavior')
  ...
} catch (ex) {
  motadataLogs.logger.error('Error occurred', { team: 'myTeam' }, ex)
}
```

<!-- Note: all URLs should be absolute -->

[1]: https://docs.datadoghq.com/logs/log_collection/javascript
[2]: https://www.npmjs.com/package/@motadata123/browser-logs
npm package: @motadata123/browser-rum
Description: Datadog Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.
Latest version: 6.21.0

# RUM Browser Monitoring

Datadog Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.

See the [dedicated datadog documentation][1] for more details.

## Usage

To start collecting events, add [`@motadata123/browser-rum`][2] to your `package.json` file, then initialize it with:

```javascript
import { motadataRum } from '@motadata123/browser-rum'

motadataRum.init({
  applicationId: '<DATADOG_APPLICATION_ID>',
  clientToken: '<DATADOG_CLIENT_TOKEN>',
  site: '<DATADOG_SITE>',
  //  service: 'my-web-application',
  //  env: 'production',
  //  version: '1.0.0',
  sessionSampleRate: 100,
  sessionReplaySampleRate: 100,
  trackResources: true,
  trackLongTasks: true,
  trackUserInteractions: true,
})
```

**Note**: The `trackUserInteractions` parameter enables the automatic collection of user clicks in your application. **Sensitive and private data** contained in your pages may be included to identify the elements interacted with.

<!-- Note: all URLs should be absolute -->

[1]: https://docs.datadoghq.com/real_user_monitoring/browser
[2]: https://www.npmjs.com/package/@motadata123/browser-rum
npm package: @motadata123/browser-rum-react
Description: This package provides React and React ecosystem integrations for Datadog Browser RUM.
Latest version: 6.21.0

# RUM Browser Monitoring - React integration

This package provides React and React ecosystem integrations for Datadog Browser RUM.

See the [dedicated Datadog documentation][1] for more details.

[1]: https://docs.datadoghq.com/integrations/rum_react
npm package: @motadata123/browser-rum-slim
Description: This package is equivalent to the [RUM package](../rum), but without support for Session Replay recording and the [`compressIntakeRequests`][1] initialization parameter.
Latest version: 6.21.0

# RUM Browser Monitoring - slim package

## Overview

This package is equivalent to the [RUM package](../rum), but without support for Session Replay
recording and the [`compressIntakeRequests`][1] initialization parameter.

## Setup

See the [RUM package](../rum/README.md) documentation.

[1]: https://docs.datadoghq.com/real_user_monitoring/browser/setup/client/?tab=rum#initialization-parameters:~:text=compressIntakeRequests
npm package: @motadata365/browser-rum
Description: Motadata Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.
Latest version: 6.21.20

# RUM Browser Monitoring

Motadata Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.

See the [dedicated motadata documentation][1] for more details.

## Usage

To start collecting events, add [`@motadata365/browser-rum`][2] to your `package.json` file, then initialize it with:

```javascript
import { motadataRum } from '@motadata365/browser-rum'

motadataRum.init({
  applicationId: '<MOTADATA_APPLICATION_ID>',
  clientToken: '<MOTADATA_CLIENT_TOKEN>',
  site: '<MOTADATA_SITE>',
  //  service: 'my-web-application',
  //  env: 'production',
  //  version: '1.0.0',
  sessionSampleRate: 100,
  trackResources: true,
  trackLongTasks: true,
  trackUserInteractions: true,
})
```

**Note**: The `trackUserInteractions` parameter enables the automatic collection of user clicks in your application. **Sensitive and private data** contained in your pages may be included to identify the elements interacted with.

<!-- Note: all URLs should be absolute -->

[1]: https://docs.datadoghq.com/real_user_monitoring/browser
[2]: https://www.npmjs.com/package/@motadata365/browser-rum
npm package: @motadata365/browser-rum-react
Description: This package provides React and React ecosystem integrations for Datadog Browser RUM.
Latest version: 6.21.19

# RUM Browser Monitoring - React integration

This package provides React and React ecosystem integrations for Datadog Browser RUM.

See the [dedicated Datadog documentation][1] for more details.

[1]: https://docs.datadoghq.com/integrations/rum_react