You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add cmab config
* remove enabled config, remove 3 ENV vars for cmab, only use a single one
* cleanup readme
* add cmab logic to agent
* add cmab config
* remove enabled config, remove 3 ENV vars for cmab, only use a single one
* cleanup readme
* add cmab logic to agent
* Use go-sdk branch mpirnovar-cmab-gosdk-agent-fssdk-11589 for CMAB support
* fix formatting
* surface cmabUUID in Decide API response
* Add support for returning the cmabUUID field in Decide API responses and tests.
* remove duplicate CmabUUID
* Add configurable CMAB prediction endpoint for FSC testing
* Force GitHub refresh
* add prediction endpoint handling to main.go
* Update agent to use CMAB configuration approach
* fix tests
* Force GitHub refresh
* configure ENV var OPTIMIZELY_CMAB_PREDICTIONENDPOINT to allow fsc tests to run
* remove %s, already in the endpoint in fsc
* Add client reset functionality for FSC CMAB test isolation
* Trigger PR check
* fix formatting issues
* Refactored CMAB configuration from unstructured map[string]interface{} to structured types for better type safety and maintainability.
* restore retry config
* fix Prisma crypto dependency alert
* clean up go-mod to point to go-sdk master
* point go.sum to the latet go-sdk master which is ahead of current 2.1.0 release
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,10 @@ Below is a comprehensive list of available configuration properties.
124
124
| log.level | OPTIMIZELY_LOG_LEVEL | The log [level](https://github.com/rs/zerolog#leveled-logging) for the agent. Default: info |
125
125
| log.pretty | OPTIMIZELY_LOG_PRETTY | Flag used to set colorized console output as opposed to structured json logs. Default: false |
126
126
| name | OPTIMIZELY_NAME | Agent name. Default: optimizely |
127
-
| sdkKeys | OPTIMIZELY_SDKKEYS | Comma delimited list of SDK keys used to initialize on startup |
127
+
| sdkKeys | OPTIMIZELY_SDKKEYS | Comma delimited list of SDK keys used to initialize on startup |
128
+
| cmab | OPTIMIZELY_CMAB | Complete JSON configuration for CMAB. Format: see example below |
129
+
| cmab.cache | OPTIMIZELY_CMAB_CACHE | JSON configuration for just the CMAB cache section. Format: see example below |
130
+
| cmab.retryConfig | OPTIMIZELY_CMAB_RETRYCONFIG | JSON configuration for just the CMAB retry settings. Format: see example below |
128
131
| server.allowedHosts | OPTIMIZELY_SERVER_ALLOWEDHOSTS | List of allowed request host values. Requests whose host value does not match either the configured server.host, or one of these, will be rejected with a 404 response. To match all subdomains, you can use a leading dot (for example `.example.com` matches `my.example.com`, `hello.world.example.com`, etc.). You can use the value `.` to disable allowed host checking, allowing requests with any host. Request host is determined in the following priority order: 1. X-Forwarded-Host header value, 2. Forwarded header host= directive value, 3. Host property of request (see Host under https://pkg.go.dev/net/http#Request). Note: don't include port in these hosts values - port is stripped from the request host before comparing against these. |
129
132
| server.batchRequests.maxConcurrency | OPTIMIZELY_SERVER_BATCHREQUESTS_MAXCONCURRENCY | Number of requests running in parallel. Default: 10 |
130
133
| server.batchRequests.operationsLimit | OPTIMIZELY_SERVER_BATCHREQUESTS_OPERATIONSLIMIT | Number of allowed operations. ( will flag an error if the number of operations exeeds this parameter) Default: 500 |
@@ -142,6 +145,25 @@ Below is a comprehensive list of available configuration properties.
142
145
| webhook.projects.<_projectId_>.secret | N/A | Webhook secret used to validate webhook requests originating from the respective projectId |
143
146
| webhook.projects.<_projectId_>.skipSignatureCheck | N/A | Boolean to indicate whether the signature should be validated. TODO remove in favor of empty secret. |
144
147
148
+
### CMAB Configuration Example
149
+
150
+
```json
151
+
{
152
+
"requestTimeout": "5s",
153
+
"cache": {
154
+
"type": "memory",
155
+
"size": 2000,
156
+
"ttl": "45m"
157
+
},
158
+
"retryConfig": {
159
+
"maxRetries": 3,
160
+
"initialBackoff": "100ms",
161
+
"maxBackoff": "10s",
162
+
"backoffMultiplier": 2.0
163
+
}
164
+
}
165
+
```
166
+
145
167
More information about configuring Agent can be found in the [Advanced Configuration Notes](https://docs.developers.optimizely.com/experimentation/v4.0.0-full-stack/docs/advanced-configuration).
0 commit comments