We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cc378 commit d7bdbdaCopy full SHA for d7bdbda
src/apify_client/_statistics.py
@@ -6,8 +6,13 @@ class Statistics:
6
"""Statistics about API client usage and rate limit errors."""
7
8
calls: int = 0
9
+ """Total number of API method calls made by the client."""
10
+
11
requests: int = 0
12
+ """Total number of HTTP requests sent, including retries."""
13
14
rate_limit_errors: list[int] = field(default_factory=list)
15
+ """List tracking which retry attempts encountered rate limit (429) errors."""
16
17
def add_rate_limit_error(self, attempt: int) -> None:
18
"""Add rate limit error for specific attempt.
0 commit comments