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