Skip to content

Commit

Permalink
RUMM-2349 Add frustration signal 'Error Tap'
Browse files Browse the repository at this point in the history
  • Loading branch information
xgouchet committed Aug 8, 2022
1 parent 72beeb9 commit afcc44b
Show file tree
Hide file tree
Showing 13 changed files with 396 additions and 35 deletions.
113 changes: 99 additions & 14 deletions dd-sdk-android/apiSurface
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ interface com.datadog.android.rum.RumSessionListener
class com.datadog.android.rum._RumInternalProxy
fun addLongTask(Long, String)
data class com.datadog.android.rum.model.ActionEvent
constructor(kotlin.Long, Application, kotlin.String? = null, ActionEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, Action)
constructor(kotlin.Long, Application, kotlin.String? = null, kotlin.String? = null, ActionEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Display? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, ActionEventAction)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
Expand Down Expand Up @@ -433,6 +433,11 @@ data class com.datadog.android.rum.model.ActionEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
data class Display
constructor(Viewport? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Display
data class Synthetics
constructor(kotlin.String, kotlin.String, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
Expand All @@ -454,7 +459,7 @@ data class com.datadog.android.rum.model.ActionEvent
companion object
fun fromJson(kotlin.String): Device
data class Dd
constructor(DdSession? = null, kotlin.String? = null)
constructor(DdSession? = null, kotlin.String? = null, DdAction? = null)
val formatVersion: kotlin.Long
fun toJson(): com.google.gson.JsonElement
companion object
Expand All @@ -464,26 +469,41 @@ data class com.datadog.android.rum.model.ActionEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Context
data class Action
constructor(ActionType, kotlin.String? = null, kotlin.Long? = null, Target? = null, Error? = null, Crash? = null, LongTask? = null, Resource? = null)
data class ActionEventAction
constructor(ActionEventActionType, kotlin.String? = null, kotlin.Long? = null, ActionEventActionTarget? = null, Frustration? = null, Error? = null, Crash? = null, LongTask? = null, Resource? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Action
fun fromJson(kotlin.String): ActionEventAction
data class Cellular
constructor(kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
data class Viewport
constructor(kotlin.Number, kotlin.Number)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Viewport
data class DdSession
constructor(Plan)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): DdSession
data class Target
data class DdAction
constructor(Position? = null, DdActionTarget? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): DdAction
data class ActionEventActionTarget
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Target
fun fromJson(kotlin.String): ActionEventActionTarget
data class Frustration
constructor(kotlin.collections.List<Type>)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Frustration
data class Error
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
Expand All @@ -504,6 +524,16 @@ data class com.datadog.android.rum.model.ActionEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Resource
data class Position
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Position
data class DdActionTarget
constructor(kotlin.String? = null, kotlin.Long? = null, kotlin.Long? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): DdActionTarget
enum Source
constructor(kotlin.String)
- ANDROID
Expand Down Expand Up @@ -556,7 +586,7 @@ data class com.datadog.android.rum.model.ActionEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): DeviceType
enum ActionType
enum ActionEventActionType
constructor(kotlin.String)
- CUSTOM
- CLICK
Expand All @@ -567,16 +597,26 @@ data class com.datadog.android.rum.model.ActionEvent
- BACK
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ActionType
fun fromJson(kotlin.String): ActionEventActionType
enum Plan
constructor(kotlin.Number)
- PLAN_1
- PLAN_2
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Plan
enum Type
constructor(kotlin.String)
- RAGE_CLICK
- DEAD_CLICK
- ERROR_CLICK
- RAGE_TAP
- ERROR_TAP
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Type
data class com.datadog.android.rum.model.ErrorEvent
constructor(kotlin.Long, Application, kotlin.String? = null, ErrorEventSession, ErrorEventSource? = null, View, Usr? = null, Connectivity? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, Error, Action? = null)
constructor(kotlin.Long, Application, kotlin.String? = null, kotlin.String? = null, ErrorEventSession, ErrorEventSource? = null, View, Usr? = null, Connectivity? = null, Display? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, Error, Action? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
Expand Down Expand Up @@ -606,6 +646,11 @@ data class com.datadog.android.rum.model.ErrorEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
data class Display
constructor(Viewport? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Display
data class Synthetics
constructor(kotlin.String, kotlin.String, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -652,6 +697,11 @@ data class com.datadog.android.rum.model.ErrorEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
data class Viewport
constructor(kotlin.Number, kotlin.Number)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Viewport
data class DdSession
constructor(Plan)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -787,7 +837,7 @@ data class com.datadog.android.rum.model.ErrorEvent
companion object
fun fromJson(kotlin.String): ProviderType
data class com.datadog.android.rum.model.LongTaskEvent
constructor(kotlin.Long, Application, kotlin.String? = null, LongTaskEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, LongTask, Action? = null)
constructor(kotlin.Long, Application, kotlin.String? = null, kotlin.String? = null, LongTaskEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Display? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, LongTask, Action? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
Expand Down Expand Up @@ -817,6 +867,11 @@ data class com.datadog.android.rum.model.LongTaskEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
data class Display
constructor(Viewport? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Display
data class Synthetics
constructor(kotlin.String, kotlin.String, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -863,6 +918,11 @@ data class com.datadog.android.rum.model.LongTaskEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
data class Viewport
constructor(kotlin.Number, kotlin.Number)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Viewport
data class DdSession
constructor(Plan)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -928,7 +988,7 @@ data class com.datadog.android.rum.model.LongTaskEvent
companion object
fun fromJson(kotlin.String): Plan
data class com.datadog.android.rum.model.ResourceEvent
constructor(kotlin.Long, Application, kotlin.String? = null, ResourceEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, Resource, Action? = null)
constructor(kotlin.Long, Application, kotlin.String? = null, kotlin.String? = null, ResourceEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Display? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null, Resource, Action? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
Expand Down Expand Up @@ -958,6 +1018,11 @@ data class com.datadog.android.rum.model.ResourceEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
data class Display
constructor(Viewport? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Display
data class Synthetics
constructor(kotlin.String, kotlin.String, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -1004,6 +1069,11 @@ data class com.datadog.android.rum.model.ResourceEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
data class Viewport
constructor(kotlin.Number, kotlin.Number)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Viewport
data class DdSession
constructor(Plan)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -1150,7 +1220,7 @@ data class com.datadog.android.rum.model.ResourceEvent
companion object
fun fromJson(kotlin.String): ProviderType
data class com.datadog.android.rum.model.ViewEvent
constructor(kotlin.Long, Application, kotlin.String? = null, ViewEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null)
constructor(kotlin.Long, Application, kotlin.String? = null, kotlin.String? = null, ViewEventSession, Source? = null, View, Usr? = null, Connectivity? = null, Display? = null, Synthetics? = null, CiTest? = null, Os? = null, Device? = null, Dd, Context? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
Expand All @@ -1166,7 +1236,7 @@ data class com.datadog.android.rum.model.ViewEvent
companion object
fun fromJson(kotlin.String): ViewEventSession
data class View
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null, kotlin.Long? = null, LoadingType? = null, kotlin.Long, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Number? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, CustomTimings? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, Action, Error, Crash? = null, LongTask? = null, FrozenFrame? = null, Resource, kotlin.collections.List<InForegroundPeriod>? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null)
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null, kotlin.Long? = null, LoadingType? = null, kotlin.Long, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Number? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, CustomTimings? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, Action, Error, Crash? = null, LongTask? = null, FrozenFrame? = null, Resource, Frustration? = null, kotlin.collections.List<InForegroundPeriod>? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null, kotlin.Number? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): View
Expand All @@ -1180,6 +1250,11 @@ data class com.datadog.android.rum.model.ViewEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
data class Display
constructor(Viewport? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Display
data class Synthetics
constructor(kotlin.String, kotlin.String, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
Expand Down Expand Up @@ -1246,6 +1321,11 @@ data class com.datadog.android.rum.model.ViewEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Resource
data class Frustration
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Frustration
data class InForegroundPeriod
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
Expand All @@ -1256,6 +1336,11 @@ data class com.datadog.android.rum.model.ViewEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
data class Viewport
constructor(kotlin.Number, kotlin.Number)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Viewport
data class DdSession
constructor(Plan)
fun toJson(): com.google.gson.JsonElement
Expand Down
29 changes: 29 additions & 0 deletions dd-sdk-android/src/main/json/rum/_common-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
"description": "The service name for this application",
"readOnly": true
},
"version": {
"type": "string",
"description": "The version for this application",
"readOnly": true
},
"session": {
"type": "object",
"description": "Session properties",
Expand Down Expand Up @@ -163,6 +168,30 @@
}
}
},
"display": {
"type": "object",
"description": "Display properties",
"properties": {
"viewport": {
"type": "object",
"description": "The viewport represents the rectangular area that is currently being viewed. Content outside the viewport is not visible onscreen until scrolled into view.",
"required": ["width", "height"],
"properties": {
"width": {
"type": "number",
"description": "Width of the viewport (in pixels)",
"readOnly": true
},
"height": {
"type": "number",
"description": "Height of the viewport (in pixels)",
"readOnly": true
}
},
"readOnly": true
}
}
},
"synthetics": {
"type": "object",
"description": "Synthetics properties",
Expand Down
Loading

0 comments on commit afcc44b

Please sign in to comment.