Add env var to allow disabling usage reporting

In the spirit of being nice and privacy-conscious, setting
`SERENA_USAGE_REPORTING` to `false` will disable usage reporting.
By default, usage reporting is enabled.
This commit is contained in:
Jochen Seeber authored and Dominik Jain committed 2026-04-12 14:57:33 +02:00
1 parent 34a703ad50
commit 4b2c7bd849
1 file changed
+2 -3
+2 -3
View File
@@ -410,10 +410,9 @@ class SerenaAgent:
self._send_usage_info()
def _send_usage_info(self) -> None:
is_ci = os.getenv("CI") == "true" or os.getenv("GITHUB_ACTIONS") == "true"
if is_ci:
if os.getenv("CI") == "true" or os.getenv("GITHUB_ACTIONS") == "true" or os.getenv("SERENA_USAGE_REPORTING") == "false":
return
params = {
params: dict[str, str | int] = {
"os": platform.system(),
"dashboard": int(self.serena_config.web_dashboard),
"version": self.version,