Release 3.3.0
3.3.0
September 26th, 2019
New Features:
- Added non-typed
get_feature_variable
method (#190) as a more idiomatic approach to getting values of feature variables.- Typed
get_feature_variable
methods 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_enabled
will 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_size
andflush_interval
properties in theOptimizelyFactory
usingOptimizelyFactory.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_size
defaults to10
.flush_interval
defaults to30000
milliseconds. - Added the
close
method representing the process of closing the instance. Whenclose
is 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
EventBuilder
was deprecated and now we will be usingUserEventFactory
andEventFactory
to create logEvents.LogEvent
was deprecated fromActivate
andTrack
notifications in favor of explicitLogEvent
notification.