Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb505587 authored by Jack He's avatar Jack He
Browse files

Add counters for true number of events being logged

* The metrics module drops oldest event when event size goes beyond its
  logging capacity
* The understand whether events were dropped, we want to log the true
  number of events.

Bug: 33694310
Test: Code compilation
Change-Id: I381e1cbdf6d08ec2d6e98a53cd27593b700b3d2a
(cherry picked from commit b5633d92c0debaf5b07dc3973a880c31a940421c)
parent 6da81490
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,18 @@ message BluetoothLog {


  // Number of bonded devices.
  // Number of bonded devices.
  optional int32 num_bonded_devices = 5;
  optional int32 num_bonded_devices = 5;

  // Number of BluetoothSession including discarded ones beyond capacity
  optional int64 num_bluetooth_session = 6;

  // Number of PairEvent including discarded ones beyond capacity
  optional int64 num_pair_event = 7;

  // Number of WakeEvent including discarded ones beyond capacity
  optional int64 num_wake_event = 8;

  // Number of ScanEvent including discarded ones beyond capacity
  optional int64 num_scan_event = 9;
}
}


// The information about the device.
// The information about the device.