Both the regular mode and the batch mode use the same events upload threshold and flush time intervals. For customers who want to send large batches of data at a time, set useBatch to true to set setServerUrl to batch event upload API. You can customize batch behavior with flushQueueSize and flushIntervalMillis. Events are flushed in batches in background. Every event logged by the track method is queued in memory. To support high-performance environments, the SDK sends events in batches. Sets whether to upload events to Batch API instead of the default HTTP V2 API or not. Sets a custom implementation of Transport to use different request API.īoolean. Sets a custom implementation of Storage to persist unsent events. Set this to EU for Amplitude projects created in EU data center. Sets the URL where events are upload to.ĮU or US. Setting a value of true prevents Amplitude from tracking and uploading events. Sets the minimum length for the value of user_id and device_id properties.īoolean. Sets a custom loggerProvider class from the Logger to emit log messages to desired destination. LogLevel.None or LogLevel.Error or LogLevel.Warn or LogLevel.Verbose or LogLevel.Debug. This is only applicable to retryable errors. Sets the maximum number of reties for failed upload attempts. Sets the maximum number of events that are batched in a single upload attempt. Sets the interval of uploading events to Amplitude in milliseconds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |