Enable listener for statsd notification memory collection

This reenables registration for notification memory collection. To
actually collect the data, server-side flag rollout still needs to
happen.

Bug: 290620219
Test: unit tests covering the class, manually checked on panther
      to verify no crashes
Change-Id: If58bf46a676b3ea39b47a962853cc5484b9c2054
This commit is contained in:
Jernej Virag
2023-07-28 12:38:41 +02:00
parent 8fd9d5571d
commit d953cfb2d4

View File

@@ -62,11 +62,12 @@ object Flags {
val INSTANT_VOICE_REPLY = unreleasedFlag(111, "instant_voice_reply")
/**
* This flag is server-controlled and should stay as [unreleasedFlag] since we never want to
* enable it on release builds.
* This flag controls whether we register a listener for StatsD notification memory reports.
* For statsd to actually call the listener however, a server-side toggle needs to be
* enabled as well.
*/
val NOTIFICATION_MEMORY_LOGGING_ENABLED =
unreleasedFlag(119, "notification_memory_logging_enabled")
releasedFlag(119, "notification_memory_logging_enabled")
// TODO(b/260335638): Tracking Bug
@JvmField