From df0c08007b208c2fb343eb8c891f2c96643b7f72 Mon Sep 17 00:00:00 2001 From: fdi Date: Mon, 20 Dec 2021 20:24:50 -0800 Subject: [PATCH] [Connections][Analytics] Add log source for NC logs. PiperOrigin-RevId: 417531016 --- proto/analytics/connections_log.proto | 5 ++++- proto/connections_enums.proto | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/proto/analytics/connections_log.proto b/proto/analytics/connections_log.proto index 368612be..936cd6bd 100644 --- a/proto/analytics/connections_log.proto +++ b/proto/analytics/connections_log.proto @@ -39,9 +39,12 @@ message ConnectionsLog { // The version of Nearby Connections. E.g. "v1.0.4". optional string version = 3 ; - // for EventType.ERROR_CODE + // For EventType.ERROR_CODE optional ErrorCode error_code = 4; + // Indicates the source of the log. + optional location.nearby.proto.connections.LogSource log_source = 5; + // Encapsulates one session of a client connected to Nearby Connections API. message ClientSession { // Elapsed time in milliseconds between Client connect and diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index 97ae20e5..dec1481a 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -357,3 +357,22 @@ enum BandwidthUpgradeErrorStage { // On the incoming side, listening for incoming WebRTC connections. WEB_RTC_LISTEN_INCOMING = 34; } + +// The device sources of the clearcut log. +enum LogSource { + UNSPECIFIED_SOURCE = 0; + + // Represents the devices in Nearby labs. + LAB_DEVICES = 1; + // Represents the devices tested by Nearby engs, in the long term can include + // any devices with newest feature flags. + INTERNAL_DEVICES = 2; + // Represents the devices testing our in-development features before they're + // released to the greater public. + BETA_TESTER_DEVICES = 3; + // Represents the OEM partners (like Samsung) that we're working with to + // verify functionality on their devices. + OEM_DEVICES = 4; + // Represents the device for debugging. + DEBUG_DEVICES = 5; +} \ No newline at end of file