0.0.1 • Published 2 years ago
@houseninja/capacitor-datadog
Capacitor plugin for Datadog RUM
Install
npm install @houseninja/capacitor-datadog
npx cap sync
API
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>
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>
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' |