[Connections][Analytics] Add log source for NC logs.

PiperOrigin-RevId: 417531016
This commit is contained in:
fdi
2021-12-21 14:48:30 -08:00
committed by hai007
parent 7406ad8bff
commit df0c08007b
2 changed files with 23 additions and 1 deletions
+4 -1
View File
@@ -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
+19
View File
@@ -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;
}