Skip to content

v0.14.2 - bootstrap options and getLayer API with custom logging

Compare
Choose a tag to compare
@jkw-statsig jkw-statsig released this 09 May 23:32
· 466 commits to main since this release

You can now bootstrap the java server SDK with a previous set of rules for you gates and configs via two new options in StatsigOptions:

bootstrapValues: String?
rulesUpdatedCallback: ((rules: String) -> Unit)?

bootstrapValues - a string that represents all rules for all feature gates, dynamic configs and experiments. It can be provided to bootstrap the Statsig server SDK at initialization in case your server runs into network issue or Statsig server is down temporarily.

rulesUpdatedCallback - a callback function that's called whenever we have an update for the rules; it's called with a logical timestamp and a JSON string (used as is for bootstrapValues mentioned above).

Also added a new API getLayerWithCustomExposureLogging to for customers to get a Layer object without automatic exposure loggings. The onExposure parameter on the function allows you to pass your own handler to handle exposure loggings.