Skip to content

Commit

Permalink
add telemery timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Nov 26, 2024
1 parent 5ddf255 commit ee96979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fluentd_telemetry_plugin/src/telemetry_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_metrics(self, _host, _port, _url, msg_tag):
url = f'http://{_host}:{_port}/{_url}'
logging.info('Send UFM Telemetry Endpoint Request, Method: GET, URL: %s', url)
try:
response = requests.get(url, timeout=self.config_parser.get_telemetry_timeout()) # pylint: disable=missing-timeout
response = requests.get(url, timeout=self.config_parser.get_telemetry_timeout())
response.raise_for_status()
actual_content_size = len(response.content)
expected_content_size = int(response.headers.get('Content-Length', actual_content_size))
Expand Down

0 comments on commit ee96979

Please sign in to comment.