You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `AsyncBufferedConsumer` constructor now supports more arguments.
Those are the same as for the `BufferConsumer` coming from the official
Mixpanel package, which is used under the hood.
I removed the `*args` and `**kwargs` parameters so that only supported
arguments are accepted. This should avoid surprises for users. This
breaking change is mentioned in the changelog.
Copy file name to clipboardExpand all lines: README.md
+7-4
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,17 @@ For most users, the default configuration should work perfectly. For more specif
34
34
35
35
36
36
*`flush_after (datetime.timedelta)` - *defaults to 10 seconds* - the time period after which the AsyncBufferedConsumer will flush the events upon receiving a new event (no matter what the event queue size is)
37
-
38
37
*`flush_first (bool)` - *defaults to True* - whether the consumer should always flush the first event.
39
-
40
38
*`max_size (int)` - *defaults to 20* - how big a given event queue can get before it is flushed by the consumer
41
-
42
39
*`events_url (str)` - *defaults to standard Mixpanel API URL* - the Mixpanel API URL that track events will be sent to
43
-
44
40
*`people_url (str)` - *defaults to standard Mixpanel API URL* - the Mixpanel API URL that people events will be sent to
41
+
*`import_url (str)` - *defaults to standard Mixpanel API URL* - the Mixpanel API URL that import events will be sent to
42
+
*`request_timeout (int)` - *defaults to `None` (no timeout)* - Connection timeout in seconds.
43
+
*`groups_url (str)` - *defaults to standard Mixpanel API URL* - the Mixpanel API URL that groups events will be sent to
44
+
*`api_host (str)` - *defaults to api.mixpanel.com* - Mixpanel API domain for all requests unless overridden by above URLs
45
+
*`retry_limit (int)` - *defaults to 4* - Number of times to retry each request in case of an error, 0 to fail after first attempt.
46
+
*`retry_backoff_factor` - *defaults to 0.25* - Factor which controls sleep duration between retries: `sleep_seconds = backoff_factor * (2 ^ (retry_count - 1))`
47
+
*`verify_cert` - *defaults to `True`*- Whether to verify the server certificate. `True` is recommended.
0 commit comments