Skip to content

Commit 65f7e65

Browse files
authored
RUM-12636: Supporting new API usage for cronet/okhttp integration (#357)
1 parent 6ded6e4 commit 65f7e65

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

lib/cjs/generated/telemetry.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartD
499499
/**
500500
* Schema of mobile specific features usage
501501
*/
502-
export type TelemetryMobileFeaturesUsage = AddViewLoadingTime | TrackWebView;
502+
export type TelemetryMobileFeaturesUsage = AddViewLoadingTime | TrackWebView | AndroidNetworkInstrumentation;
503503
/**
504504
* Schema of common properties of Telemetry events
505505
*/
@@ -890,3 +890,14 @@ export interface TrackWebView {
890890
feature: 'trackWebView';
891891
[k: string]: unknown;
892892
}
893+
export interface AndroidNetworkInstrumentation {
894+
/**
895+
* Android network instrumentation
896+
*/
897+
feature: 'androidNetworkInstrumentation';
898+
/**
899+
* The network instrumentation API used
900+
*/
901+
type: 'CRONET' | 'OKHTTP';
902+
[k: string]: unknown;
903+
}

lib/esm/generated/telemetry.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartD
499499
/**
500500
* Schema of mobile specific features usage
501501
*/
502-
export type TelemetryMobileFeaturesUsage = AddViewLoadingTime | TrackWebView;
502+
export type TelemetryMobileFeaturesUsage = AddViewLoadingTime | TrackWebView | AndroidNetworkInstrumentation;
503503
/**
504504
* Schema of common properties of Telemetry events
505505
*/
@@ -890,3 +890,14 @@ export interface TrackWebView {
890890
feature: 'trackWebView';
891891
[k: string]: unknown;
892892
}
893+
export interface AndroidNetworkInstrumentation {
894+
/**
895+
* Android network instrumentation
896+
*/
897+
feature: 'androidNetworkInstrumentation';
898+
/**
899+
* The network instrumentation API used
900+
*/
901+
type: 'CRONET' | 'OKHTTP';
902+
[k: string]: unknown;
903+
}

schemas/telemetry/usage/mobile-features-schema.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@
3838
"const": "trackWebView"
3939
}
4040
}
41+
},
42+
{
43+
"required": ["feature", "type"],
44+
"title": "AndroidNetworkInstrumentation",
45+
"properties": {
46+
"feature": {
47+
"type": "string",
48+
"description": "Android network instrumentation",
49+
"const": "androidNetworkInstrumentation"
50+
},
51+
"type": {
52+
"type": "string",
53+
"description": "The network instrumentation API used",
54+
"enum": ["CRONET", "OKHTTP"]
55+
}
56+
}
4157
}
4258
]
4359
}

0 commit comments

Comments
 (0)