Skip to content

Commit

Permalink
Updated timeout for sending telemetry from 1 to 3 sec (was needed for…
Browse files Browse the repository at this point in the history
… dashboards)
  • Loading branch information
emeli-dral committed Aug 2, 2021
1 parent 37529be commit 5161a68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion evidently/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion evidently/_version.py
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 1 addition & 1 deletion evidently/telemetry/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 5161a68

Please sign in to comment.