You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When disabling the client but not disabling metrics, the metrics attribute/container is never initialized. Yet, attempting to call enabled? on the client results in undefined method ... for nil:NilClass as it attempts to access metrics.
Disabling the client is meant for when a user will be testing their code,
and no connection to a remote server is desired.
It is hard to see a use case for collecting and reporting metrics if the client is disabled.
Forcefully disabling metrics when disabling the client makes sense and is a more coherent behaviour.
Describe the bug
When disabling the client but not disabling metrics, the metrics attribute/container is never initialized. Yet, attempting to call
enabled?
on the client results inundefined method ... for nil:NilClass
as it attempts to access metrics.Steps to reproduce the bug
Expected behavior
No runtime errors, and correct state of the feature.
Logs, error output, etc.
Screenshots
No response
Additional context
No response
Unleash version
Ruby SDK 4.4.2
Subscription type
Enterprise
Hosting type
Hosted by Unleash
SDK information (language and version)
Ruby SDK 4.4.2
The text was updated successfully, but these errors were encountered: