SetUsageStatisticsEnabled toggles whether usage records are enqueued into the redisqueue payload buffer. This is controlled by the config field `usage-statistics-enabled` and the corresponding management API.
(enabled bool)
| 11 | // SetUsageStatisticsEnabled toggles whether usage records are enqueued into the redisqueue payload buffer. |
| 12 | // This is controlled by the config field `usage-statistics-enabled` and the corresponding management API. |
| 13 | func SetUsageStatisticsEnabled(enabled bool) { usageStatisticsEnabled.Store(enabled) } |
| 14 | |
| 15 | // UsageStatisticsEnabled reports whether the usage queue plugin should publish records. |
| 16 | func UsageStatisticsEnabled() bool { return usageStatisticsEnabled.Load() } |
no outgoing calls