@houseninja/capacitor-datadog
Capacitor plugin for Datadog RUM
npm install @houseninja/capacitor-datadog
npx cap sync
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(...)
addUserExtraInfo ( extraInfo : { [ key : string ] : string; } ) = > Promise < void >
Param
Type
extraInfo
{ [key: string]: string; }
addUserAction ( type : RUMUserActionType , name : string , attributes : { [ key : string ] : string; } ) = > Promise < void >
addAttribute ( key : string , value : string ) = > Promise < void >
Param
Type
key
string
value
string
removeAttribute ( key : string ) = > Promise < void >
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'