From 3d2d649e584e4f599401ad87af24afd8f6f12523 Mon Sep 17 00:00:00 2001 From: Max Bohomolov Date: Tue, 4 Feb 2025 13:51:42 +0000 Subject: [PATCH] fix: add stats attribute for `ApifyClientAsync` --- src/apify_client/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apify_client/client.py b/src/apify_client/client.py index e26bb736..0e2a7d09 100644 --- a/src/apify_client/client.py +++ b/src/apify_client/client.py @@ -310,11 +310,13 @@ def __init__( timeout_secs=timeout_secs, ) + self.stats = Statistics() self.http_client = HTTPClientAsync( token=token, max_retries=self.max_retries, min_delay_between_retries_millis=self.min_delay_between_retries_millis, timeout_secs=self.timeout_secs, + stats=self.stats, ) def actor(self, actor_id: str) -> ActorClientAsync: