Add new analytics event for status of Cloud Sharing RPC calls.

PiperOrigin-RevId: 828076707
This commit is contained in:
hai007
2025-11-04 12:05:01 -08:00
committed by Copybara-Service
parent b85719eae5
commit 58aa89ae00
2 changed files with 25 additions and 2 deletions
+4 -1
View File
@@ -32,7 +32,7 @@ option objc_class_prefix = "GNSHP";
// in NearbyClearcutLogger (for android, or clearcut_event_logger as the
// equivalence for Windows) for all events (may exclude settings), and
// session_id for a pair of events (start and end of a session).
// Next id: 80
// Next id: 81
enum EventType {
UNKNOWN_EVENT_TYPE = 0;
@@ -329,6 +329,9 @@ enum EventType {
CLOUD_DOWNLOAD_END = 79 /*[ device_role = DEVICE_ROLE_REMOTE ]*/;
// QR code cloud sharing events end.
// Cloud sharing RPC performance result
CLOUD_SHARING_RPC_RESULT = 80;
// LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode)
}
@@ -30,7 +30,7 @@ option objc_class_prefix = "GNCP";
// Top-level log proto for all NearbySharing logging.
// Each log contains a key (event_type), value (a verb-noun event) pair.
// Next Tag: 89
// Next Tag: 90
// LINT.IfChange
message SharingLog {
/* justification = {
@@ -239,6 +239,9 @@ message SharingLog {
optional CloudDownloadEnd cloud_download_end = 88;
// Cloud sharing RPC call event.
optional CloudSharingRpcResult cloud_sharing_rpc_result = 89;
// Used only for Nearby Share Windows app now.
message AppInfo {
// e.g. "1.0.408"
@@ -1086,5 +1089,22 @@ message SharingLog {
message CloudDownloadEnd {
repeated CloudAttachmentInfo download_infos = 1;
}
// EventType: CLOUD_SHARING_RPC_RESULT
// Event logging the result of a Cloud Sharing RPC call. This event captures
// the type of RPC, its outcome, and performance metrics.
message CloudSharingRpcResult {
// The specific RPC method that was called.
optional string rpc_name = 1;
// The canonical gRPC status code (io.grpc.Status.Code) resulting from the
// call.
optional int32 status_code = 2;
// The total time taken for the RPC call to complete, in milliseconds.
optional int64 latency_millis = 3;
// The unique identifier for the cloud sharing session, if available at the
// time of the call. This helps correlate RPC events to a specific sharing
// session.
optional string cloud_sharing_id = 4;
}
}
// LINT.ThenChange(//depot/google3/logs/proto/location/nearby/nearby_client_log.proto)