Skip to content

Commit a46b8f7

Browse files
authored
Merge pull request #2818 from DataDog/tvaleev/feature/RUM-11253
[RUM-11253][FO]: Adding telemetry for basic methods
2 parents 408586a + 3220078 commit a46b8f7

File tree

14 files changed

+779
-81
lines changed

14 files changed

+779
-81
lines changed

dd-sdk-android-internal/api/apiSurface

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ sealed class com.datadog.android.internal.telemetry.InternalTelemetryEvent
6363
constructor(MutableMap<String, Any?> = mutableMapOf())
6464
class AddViewLoadingTime : ApiUsage
6565
constructor(Boolean, Boolean, Boolean, MutableMap<String, Any?> = mutableMapOf())
66+
class AddOperationStepVital : ApiUsage
67+
constructor(ActionType, MutableMap<String, Any?> = mutableMapOf())
68+
enum ActionType
69+
- START
70+
- SUCCEED
71+
- FAIL
6672
object InterceptorInstantiated : InternalTelemetryEvent
6773
enum com.datadog.android.internal.telemetry.TracingHeaderType
6874
- DATADOG

dd-sdk-android-internal/api/dd-sdk-android-internal.api

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,20 @@ public abstract class com/datadog/android/internal/telemetry/InternalTelemetryEv
114114
public final fun getAdditionalProperties ()Ljava/util/Map;
115115
}
116116

117+
public final class com/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital : com/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage {
118+
public fun <init> (Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;Ljava/util/Map;)V
119+
public synthetic fun <init> (Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
120+
public final fun getActionType ()Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;
121+
}
122+
123+
public final class com/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType : java/lang/Enum {
124+
public static final field FAIL Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;
125+
public static final field START Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;
126+
public static final field SUCCEED Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;
127+
public static fun valueOf (Ljava/lang/String;)Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;
128+
public static fun values ()[Lcom/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddOperationStepVital$ActionType;
129+
}
130+
117131
public final class com/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage$AddViewLoadingTime : com/datadog/android/internal/telemetry/InternalTelemetryEvent$ApiUsage {
118132
public fun <init> (ZZZLjava/util/Map;)V
119133
public synthetic fun <init> (ZZZLjava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V

dd-sdk-android-internal/src/main/java/com/datadog/android/internal/telemetry/InternalTelemetryEvent.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ sealed class InternalTelemetryEvent {
5656
val noActiveView: Boolean,
5757
additionalProperties: MutableMap<String, Any?> = mutableMapOf()
5858
) : ApiUsage(additionalProperties)
59+
60+
class AddOperationStepVital(
61+
val actionType: ActionType,
62+
additionalProperties: MutableMap<String, Any?> = mutableMapOf()
63+
) : ApiUsage(additionalProperties) {
64+
enum class ActionType {
65+
START,
66+
SUCCEED,
67+
FAIL
68+
}
69+
}
5970
}
6071

6172
object InterceptorInstantiated : InternalTelemetryEvent()

features/dd-sdk-android-rum/api/apiSurface

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ data class com.datadog.android.telemetry.model.TelemetryConfigurationEvent
23732373
fun fromJson(kotlin.String): Os
23742374
fun fromJsonObject(com.google.gson.JsonObject): Os
23752375
data class Configuration
2376-
constructor(kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, TraceContextInjection? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, TrackingConsent? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, SessionPersistence? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.collections.List<SelectedTracingPropagator>? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.collections.List<kotlin.String>? = null, kotlin.collections.List<kotlin.String>? = null, kotlin.Boolean? = null, ViewTrackingStrategy? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.Long? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.collections.List<Plugin>? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.collections.List<TrackFeatureFlagsForEvent>? = null, kotlin.Boolean? = true)
2376+
constructor(kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, TraceContextInjection? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, TrackingConsent? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, SessionPersistence? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.collections.List<SelectedTracingPropagator>? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.collections.List<kotlin.String>? = null, kotlin.collections.List<kotlin.String>? = null, kotlin.Boolean? = null, ViewTrackingStrategy? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.Long? = null, kotlin.Boolean? = null, kotlin.String? = null, kotlin.String? = null, kotlin.Boolean? = null, kotlin.collections.List<Plugin>? = null, kotlin.Boolean? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.collections.List<TrackFeatureFlagsForEvent>? = null, kotlin.Boolean? = true, kotlin.Boolean? = false, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.String? = null)
23772377
fun toJson(): com.google.gson.JsonElement
23782378
companion object
23792379
fun fromJson(kotlin.String): Configuration
@@ -2702,30 +2702,109 @@ data class com.datadog.android.telemetry.model.TelemetryUsageEvent
27022702
companion object
27032703
fun fromJson(kotlin.String): AddError
27042704
fun fromJsonObject(com.google.gson.JsonObject): AddError
2705+
class GetGlobalContext : Usage
2706+
val feature: kotlin.String
2707+
override fun toJson(): com.google.gson.JsonElement
2708+
companion object
2709+
fun fromJson(kotlin.String): GetGlobalContext
2710+
fun fromJsonObject(com.google.gson.JsonObject): GetGlobalContext
27052711
class SetGlobalContext : Usage
27062712
val feature: kotlin.String
27072713
override fun toJson(): com.google.gson.JsonElement
27082714
companion object
27092715
fun fromJson(kotlin.String): SetGlobalContext
27102716
fun fromJsonObject(com.google.gson.JsonObject): SetGlobalContext
2717+
class SetGlobalContextProperty : Usage
2718+
val feature: kotlin.String
2719+
override fun toJson(): com.google.gson.JsonElement
2720+
companion object
2721+
fun fromJson(kotlin.String): SetGlobalContextProperty
2722+
fun fromJsonObject(com.google.gson.JsonObject): SetGlobalContextProperty
2723+
class RemoveGlobalContextProperty : Usage
2724+
val feature: kotlin.String
2725+
override fun toJson(): com.google.gson.JsonElement
2726+
companion object
2727+
fun fromJson(kotlin.String): RemoveGlobalContextProperty
2728+
fun fromJsonObject(com.google.gson.JsonObject): RemoveGlobalContextProperty
2729+
class ClearGlobalContext : Usage
2730+
val feature: kotlin.String
2731+
override fun toJson(): com.google.gson.JsonElement
2732+
companion object
2733+
fun fromJson(kotlin.String): ClearGlobalContext
2734+
fun fromJsonObject(com.google.gson.JsonObject): ClearGlobalContext
2735+
class GetUser : Usage
2736+
val feature: kotlin.String
2737+
override fun toJson(): com.google.gson.JsonElement
2738+
companion object
2739+
fun fromJson(kotlin.String): GetUser
2740+
fun fromJsonObject(com.google.gson.JsonObject): GetUser
27112741
class SetUser : Usage
27122742
val feature: kotlin.String
27132743
override fun toJson(): com.google.gson.JsonElement
27142744
companion object
27152745
fun fromJson(kotlin.String): SetUser
27162746
fun fromJsonObject(com.google.gson.JsonObject): SetUser
2747+
class SetUserProperty : Usage
2748+
val feature: kotlin.String
2749+
override fun toJson(): com.google.gson.JsonElement
2750+
companion object
2751+
fun fromJson(kotlin.String): SetUserProperty
2752+
fun fromJsonObject(com.google.gson.JsonObject): SetUserProperty
2753+
class RemoveUserProperty : Usage
2754+
val feature: kotlin.String
2755+
override fun toJson(): com.google.gson.JsonElement
2756+
companion object
2757+
fun fromJson(kotlin.String): RemoveUserProperty
2758+
fun fromJsonObject(com.google.gson.JsonObject): RemoveUserProperty
2759+
class ClearUser : Usage
2760+
val feature: kotlin.String
2761+
override fun toJson(): com.google.gson.JsonElement
2762+
companion object
2763+
fun fromJson(kotlin.String): ClearUser
2764+
fun fromJsonObject(com.google.gson.JsonObject): ClearUser
2765+
class GetAccount : Usage
2766+
val feature: kotlin.String
2767+
override fun toJson(): com.google.gson.JsonElement
2768+
companion object
2769+
fun fromJson(kotlin.String): GetAccount
2770+
fun fromJsonObject(com.google.gson.JsonObject): GetAccount
27172771
class SetAccount : Usage
27182772
val feature: kotlin.String
27192773
override fun toJson(): com.google.gson.JsonElement
27202774
companion object
27212775
fun fromJson(kotlin.String): SetAccount
27222776
fun fromJsonObject(com.google.gson.JsonObject): SetAccount
2777+
class SetAccountProperty : Usage
2778+
val feature: kotlin.String
2779+
override fun toJson(): com.google.gson.JsonElement
2780+
companion object
2781+
fun fromJson(kotlin.String): SetAccountProperty
2782+
fun fromJsonObject(com.google.gson.JsonObject): SetAccountProperty
2783+
class RemoveAccountProperty : Usage
2784+
val feature: kotlin.String
2785+
override fun toJson(): com.google.gson.JsonElement
2786+
companion object
2787+
fun fromJson(kotlin.String): RemoveAccountProperty
2788+
fun fromJsonObject(com.google.gson.JsonObject): RemoveAccountProperty
2789+
class ClearAccount : Usage
2790+
val feature: kotlin.String
2791+
override fun toJson(): com.google.gson.JsonElement
2792+
companion object
2793+
fun fromJson(kotlin.String): ClearAccount
2794+
fun fromJsonObject(com.google.gson.JsonObject): ClearAccount
27232795
class AddFeatureFlagEvaluation : Usage
27242796
val feature: kotlin.String
27252797
override fun toJson(): com.google.gson.JsonElement
27262798
companion object
27272799
fun fromJson(kotlin.String): AddFeatureFlagEvaluation
27282800
fun fromJsonObject(com.google.gson.JsonObject): AddFeatureFlagEvaluation
2801+
data class AddOperationStepVital : Usage
2802+
constructor(ActionType)
2803+
val feature: kotlin.String
2804+
override fun toJson(): com.google.gson.JsonElement
2805+
companion object
2806+
fun fromJson(kotlin.String): AddOperationStepVital
2807+
fun fromJsonObject(com.google.gson.JsonObject): AddOperationStepVital
27292808
data class StartSessionReplayRecording : Usage
27302809
constructor(kotlin.Boolean? = null)
27312810
val feature: kotlin.String
@@ -2781,3 +2860,11 @@ data class com.datadog.android.telemetry.model.TelemetryUsageEvent
27812860
fun toJson(): com.google.gson.JsonElement
27822861
companion object
27832862
fun fromJson(kotlin.String): TrackingConsent
2863+
enum ActionType
2864+
constructor(kotlin.String)
2865+
- START
2866+
- SUCCEED
2867+
- FAIL
2868+
fun toJson(): com.google.gson.JsonElement
2869+
companion object
2870+
fun fromJson(kotlin.String): ActionType

0 commit comments

Comments
 (0)