From 5161a688578c991f78bba8f7dfdf0c7a2daf6b36 Mon Sep 17 00:00:00 2001 From: emeli-dral Date: Mon, 2 Aug 2021 12:59:01 +0300 Subject: [PATCH] Updated timeout for sending telemetry from 1 to 3 sec (was needed for dashboards) --- evidently/__main__.py | 2 +- evidently/_version.py | 2 +- evidently/telemetry/sender.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evidently/__main__.py b/evidently/__main__.py index aa38e799d4..ee3216190c 100644 --- a/evidently/__main__.py +++ b/evidently/__main__.py @@ -14,7 +14,7 @@ from evidently.runner.loader import SamplingOptions from evidently.runner.profile_runner import ProfileRunner, ProfileRunnerOptions from evidently.runner.runner import DataOptions -from _config import TELEMETRY_ENABLED, TELEMETRY_ADDRESS +from ._config import TELEMETRY_ENABLED, TELEMETRY_ADDRESS @dataclass class DataFormatOptions: diff --git a/evidently/_version.py b/evidently/_version.py index 0e6446efa0..f76dba895a 100644 --- a/evidently/_version.py +++ b/evidently/_version.py @@ -1,5 +1,5 @@ #!/usr/bin/env python # coding: utf-8 -version_info = (0, 1, 20, 'dev0') +version_info = (0, 1, 21, 'dev0') __version__ = ".".join(map(str, version_info)) \ No newline at end of file diff --git a/evidently/telemetry/sender.py b/evidently/telemetry/sender.py index bcdf9eda37..e2745ce0fe 100644 --- a/evidently/telemetry/sender.py +++ b/evidently/telemetry/sender.py @@ -21,7 +21,7 @@ def send(self, usage): usage=usage, ) try: - requests.post(self.address, json=collected, timeout=1) + requests.post(self.address, json=collected, timeout=3) except Exception as e: logging.warning(f"failed to send telemetry: {e}")