node-server-sdk

Home > @eppo/node-server-sdk > IClientConfig

IClientConfig interface

Configuration used for initializing the Eppo client

Signature:

export interface IClientConfig 

Properties

Property Modifiers Type Description
apiKey   string Eppo SDK key
assignmentLogger   IAssignmentLogger Provide a logging implementation to send variation assignments to your data warehouse.
banditLogger?   IBanditLogger (Optional) Logging implementation to send bandit actions to your data warehouse
baseUrl?   string (Optional) Base URL of the Eppo API. Clients should use the default setting in most cases.
numInitialRequestRetries?   number (Optional) Number of additional times the initial configuration request will be attempted if it fails. This is the request servers typically synchronously wait for completion. A small wait will be done between requests. (Default: 1)
numPollRequestRetries?   number (Optional) Number of additional times polling for updated configurations will be attempted before giving up. Polling is done after a successful initial request. Subsequent attempts are done using an exponential backoff. (Default: 7)
pollAfterFailedInitialization?   boolean (Optional) Poll for new configurations even if the initial configuration request failed. (default: false)
pollingIntervalMs?   number (Optional) Amount of time in milliseconds to wait between API calls to refresh configuration data. Default of 30_000 (30s).
requestTimeoutMs?   number (Optional) Timeout in milliseconds for the HTTPS request for the experiment configuration. (Default: 5000)
throwOnFailedInitialization?   boolean (Optional) Throw error if unable to fetch an initial configuration during initialization. (default: true)