Skip to content

Commit

Permalink
more broaden exception for lb (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-sidelnikov authored Nov 13, 2020
1 parent 658c34b commit 8d1f396
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion csm_test_utils/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ def get(client: Client):
metrics = MetricCollection()
try:
res = requests.get(client.url, headers={"Connection": "close"}, timeout=timeout)
except Timeout:
except Exception as Ex:
LOGGER.exception("Timeout sending request to LB")
lb_timeout = Metric(LB_TIMEOUT)
lb_timeout.add_tag("client", client.host_name)
lb_timeout.add_value("timeout", timeout * 1000)
lb_timeout.add_value("exception", Ex)
metrics.append(lb_timeout)
else:
lb_timing = Metric(LB_TIMING)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "csm-test-utils"
version = "0.2.11"
version = "0.2.12"
description = "Utils for testing infructructure created by customer service monitoring"
authors = ["OTC customer service monitroing team"]
license = "Apache-2.0"
Expand Down

0 comments on commit 8d1f396

Please sign in to comment.