An open API service indexing awesome lists of open source software.

https://github.com/houseninjadojo/capacitor-datadog

Capacitor plugin for Datadog RUM
https://github.com/houseninjadojo/capacitor-datadog

capacitor capacitor-plugin datadog datadog-apm datadog-logs telemetry

Last synced: 15 days ago
JSON representation

Capacitor plugin for Datadog RUM

Awesome Lists containing this project

README

        

# @houseninja/capacitor-datadog

Capacitor plugin for Datadog RUM

## Install

```bash
npm install @houseninja/capacitor-datadog
npx cap sync
```

## API

* [`init(...)`](#init)
* [`setUserInfo(...)`](#setuserinfo)
* [`addUserExtraInfo(...)`](#adduserextrainfo)
* [`addUserAction(...)`](#adduseraction)
* [`addAttribute(...)`](#addattribute)
* [`removeAttribute(...)`](#removeattribute)
* [`addError(...)`](#adderror)
* [Interfaces](#interfaces)
* [Enums](#enums)

### init(...)

```typescript
init(clientToken: string, applicationId: string, service: string) => Promise
```

| Param | Type |
| ------------------- | ------------------- |
| **`clientToken`** | string |
| **`applicationId`** | string |
| **`service`** | string |

--------------------

### setUserInfo(...)

```typescript
setUserInfo(id?: string | undefined, name?: string | undefined, email?: string | undefined, extraInfo?: { [key: string]: string; } | undefined) => Promise
```

| Param | Type |
| --------------- | --------------------------------------- |
| **`id`** | string |
| **`name`** | string |
| **`email`** | string |
| **`extraInfo`** | { [key: string]: string; } |

--------------------

### addUserExtraInfo(...)

```typescript
addUserExtraInfo(extraInfo: { [key: string]: string; }) => Promise
```

| Param | Type |
| --------------- | --------------------------------------- |
| **`extraInfo`** | { [key: string]: string; } |

--------------------

### addUserAction(...)

```typescript
addUserAction(type: RUMUserActionType, name: string, attributes: { [key: string]: string; }) => Promise
```

| Param | Type |
| ---------------- | --------------------------------------------------------------- |
| **`type`** | RUMUserActionType |
| **`name`** | string |
| **`attributes`** | { [key: string]: string; } |

--------------------

### addAttribute(...)

```typescript
addAttribute(key: string, value: string) => Promise
```

| Param | Type |
| ----------- | ------------------- |
| **`key`** | string |
| **`value`** | string |

--------------------

### removeAttribute(...)

```typescript
removeAttribute(key: string) => Promise
```

| Param | Type |
| --------- | ------------------- |
| **`key`** | string |

--------------------

### addError(...)

```typescript
addError(error: unknown, context?: Context | undefined) => Promise
```

| Param | Type |
| ------------- | ------------------------------------------- |
| **`error`** | unknown |
| **`context`** | Context |

--------------------

### Interfaces

#### Context

### Enums

#### RUMUserActionType

| Members | Value |
| ------------ | --------------------- |
| **`tap`** | 'tap' |
| **`click`** | 'click' |
| **`scroll`** | 'scroll' |
| **`swipe`** | 'swipe' |
| **`custom`** | 'custom' |