diff --git a/snippets/server-core/java/statsigOptions.mdx b/snippets/server-core/java/statsigOptions.mdx index e6ee9de22..2ffe4bc13 100644 --- a/snippets/server-core/java/statsigOptions.mdx +++ b/snippets/server-core/java/statsigOptions.mdx @@ -28,14 +28,38 @@ If true, the SDK will not collect any logging within the session, including cust Required to be `true` when using segments with more than 1000 IDs. - -If true, the SDK will not parse User-Agent strings into `browserName`, `browserVersion`, `systemName`, `systemVersion`, and `appVersion` when needed for evaluation. + +Custom URL for fetching ID lists. + + + +How often the SDK updates ID lists from Statsig servers (in milliseconds). + + + +The amount of time to wait for an `initialize()` response from the server (in milliseconds). The SDK will still fetch gates/configs in the background if this time is exceeded. + + + +If true, the SDK will wait for User-Agent parsing initialization to complete before returning from `initialize()`. + + + +If true, the SDK will wait for country lookup initialization to complete before returning from `initialize()`. If true, the SDK will not parse IP addresses (from `user.ip`) into country codes when needed for evaluation. + +If true, the SDK will use a third-party User-Agent parser instead of the built-in parser. + + + +If true, the SDK will not make any network requests. Useful for testing or when using a custom data store. + + How often events are flushed to Statsig servers (in milliseconds). @@ -44,6 +68,14 @@ How often events are flushed to Statsig servers (in milliseconds). Maximum number of events to queue before forcing a flush. + +Maximum number of pending batches to queue before dropping events. + + + +Name of the service using the SDK. Used for observability and debugging. + + An adapter with custom storage behavior for config specs. Can also continuously fetch updates in place of the Statsig network. @@ -56,6 +88,14 @@ Interface to use persistent storage within the SDK. Set the logging level for the SDK. Options: `NONE`, `ERROR`, `WARN`, `INFO`, `DEBUG`. + +Custom logger provider for SDK logging output. + + + +Configuration for using a proxy server for network requests. + + Interface to integrate observability metrics exposed by the SDK. @@ -69,6 +109,9 @@ StatsigOptions options = new StatsigOptions.Builder() .setEnvironment("staging") .setSpecsSyncIntervalMs(10000) .setEventLoggingFlushIntervalMs(5000) + .setInitTimeoutMs(5000) + .setServiceName("my-service") + .setEnableIDLists(true) .setOutputLoggerLevel(OutputLogger.LogLevel.INFO) .build(); @@ -82,6 +125,9 @@ val options = StatsigOptions.Builder() .setEnvironment("staging") .setSpecsSyncIntervalMs(10000) .setEventLoggingFlushIntervalMs(5000) + .setInitTimeoutMs(5000) + .setServiceName("my-service") + .setEnableIDLists(true) .setOutputLoggerLevel(OutputLogger.LogLevel.INFO) .build()