Error message
When this error occurs
Thedefaults object is the root of the inheritance chain. Every other level (namespace scope, field overrides, nested nodes) can optionally omit enabled_stats and inherit from its parent. But defaults has no parent — so enabled_stats must be explicitly provided.
This error is raised when:
defaultscontains onlystat_optionswithoutenabled_statsdefaultsis an empty object
Example: request that triggers this error
enabled_stats is missing from defaults.
How to fix
Addenabled_stats to the defaults object. Even if you only want to configure histogram options, you must declare the stat set:
Related errors
- EmptyScopeConfig — similar constraint at the namespace scope level

