@houseninja/capacitor-datadog
v0.0.1
Published
Capacitor plugin for Datadog RUM
Downloads
3
Readme
@houseninja/capacitor-datadog
Capacitor plugin for Datadog RUM
Install
npm install @houseninja/capacitor-datadog
npx cap sync
API
init(...)
setUserInfo(...)
addUserExtraInfo(...)
addUserAction(...)
addAttribute(...)
removeAttribute(...)
addError(...)
- Interfaces
- Enums
init(...)
init(clientToken: string, applicationId: string, service: string) => Promise<void>
| Param | Type |
| ------------------- | ------------------- |
| clientToken
| string |
| applicationId
| string |
| service
| string |
setUserInfo(...)
setUserInfo(id?: string | undefined, name?: string | undefined, email?: string | undefined, extraInfo?: { [key: string]: string; } | undefined) => Promise<void>
| Param | Type |
| --------------- | --------------------------------------- |
| id
| string |
| name
| string |
| email
| string |
| extraInfo
| { [key: string]: string; } |
addUserExtraInfo(...)
addUserExtraInfo(extraInfo: { [key: string]: string; }) => Promise<void>
| Param | Type |
| --------------- | --------------------------------------- |
| extraInfo
| { [key: string]: string; } |
addUserAction(...)
addUserAction(type: RUMUserActionType, name: string, attributes: { [key: string]: string; }) => Promise<void>
| Param | Type |
| ---------------- | --------------------------------------------------------------- |
| type
| RUMUserActionType |
| name
| string |
| attributes
| { [key: string]: string; } |
addAttribute(...)
addAttribute(key: string, value: string) => Promise<void>
| Param | Type |
| ----------- | ------------------- |
| key
| string |
| value
| string |
removeAttribute(...)
removeAttribute(key: string) => Promise<void>
| Param | Type |
| --------- | ------------------- |
| key
| string |
addError(...)
addError(error: unknown, context?: Context | undefined) => Promise<void>
| Param | Type |
| ------------- | ------------------------------------------- |
| error
| unknown |
| context
| Context |
Interfaces
Context
Enums
RUMUserActionType
| Members | Value |
| ------------ | --------------------- |
| tap
| 'tap' |
| click
| 'click' |
| scroll
| 'scroll' |
| swipe
| 'swipe' |
| custom
| 'custom' |