Release 3.3.0
3.3.0
September 26th, 2019
New Features:
- Added non-typed
get_feature_variablemethod (#190) as a more idiomatic approach to getting values of feature variables.- Typed
get_feature_variablemethods will still be available for use.
- Typed
- Added support for event batching via the event processor.
- Events generated by methods like
activate,track, andis_feature_enabledwill be held in a queue until the configured batch size is reached, or the configured flush interval has elapsed. Then, they will be batched into a single payload and sent to the event dispatcher. - To configure event batching, set the
batch_sizeandflush_intervalproperties in theOptimizelyFactoryusingOptimizelyFactory.max_event_batch_size(batch_size, logger)andOptimizelyFactory.max_event_flush_interval(flush_interval, logger)and then createOptimizelyFactory.custom_instance. - Event batching is enabled by default.
batch_sizedefaults to10.flush_intervaldefaults to30000milliseconds. - Added the
closemethod representing the process of closing the instance. Whencloseis called, any events waiting to be sent as part of a batched event request will be immediately batched and sent to the event dispatcher.
Deprecated
EventBuilderwas deprecated and now we will be usingUserEventFactoryandEventFactoryto create logEvents.LogEventwas deprecated fromActivateandTracknotifications in favor of explicitLogEventnotification.