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
@@ -83,7 +83,7 @@ value = client.get("config-name", context={"user_id": "123"})
83
83
Fallback values used when configs can't be loaded from the server. This is useful for resilience - your application can still function with sensible defaults if the Replane server is unavailable.
84
84
85
85
```python
86
-
client= SyncReplaneClient(
86
+
replane= SyncReplaneClient(
87
87
...,
88
88
fallbacks={
89
89
"rate-limit": 100,
@@ -104,7 +104,7 @@ Fallbacks are used in two scenarios:
104
104
List of config names that must be present after initialization. If any required config is missing, initialization will fail with a `ConfigNotFoundError`.
105
105
106
106
```python
107
-
client= SyncReplaneClient(
107
+
replane= SyncReplaneClient(
108
108
...,
109
109
required=["rate-limit", "feature-enabled"],
110
110
)
@@ -120,7 +120,7 @@ This is useful for catching configuration errors early rather than at runtime.
120
120
Timeout for individual HTTP requests to the Replane server.
121
121
122
122
```python
123
-
client= SyncReplaneClient(
123
+
replane= SyncReplaneClient(
124
124
...,
125
125
request_timeout_ms=5000, # 5 seconds
126
126
)
@@ -133,7 +133,7 @@ client = SyncReplaneClient(
133
133
Maximum time to wait for the client to initialize and receive configs from the server.
134
134
135
135
```python
136
-
client= SyncReplaneClient(
136
+
replane= SyncReplaneClient(
137
137
...,
138
138
initialization_timeout_ms=10000, # 10 seconds
139
139
)
@@ -148,7 +148,7 @@ If initialization times out, a `TimeoutError` is raised.
148
148
Initial delay between retry attempts when the connection fails. The delay increases exponentially with each retry (up to 30 seconds max).
149
149
150
150
```python
151
-
client= SyncReplaneClient(
151
+
replane= SyncReplaneClient(
152
152
...,
153
153
retry_delay_ms=500, # Start with 0.5 seconds
154
154
)
@@ -161,7 +161,7 @@ client = SyncReplaneClient(
161
161
Maximum time without receiving any SSE events before the connection is considered stale and reconnected. The server sends periodic keepalive pings, so this timeout should be longer than the server's ping interval.
162
162
163
163
```python
164
-
client= SyncReplaneClient(
164
+
replane= SyncReplaneClient(
165
165
...,
166
166
inactivity_timeout_ms=60000, # 60 seconds
167
167
)
@@ -174,7 +174,7 @@ client = SyncReplaneClient(
174
174
Enable debug logging to see detailed information about all client activity. This is useful for troubleshooting connection issues, understanding when configs are loaded, and diagnosing override evaluation.
175
175
176
176
```python
177
-
client= SyncReplaneClient(
177
+
replane= SyncReplaneClient(
178
178
...,
179
179
debug=True, # Enable debug logging
180
180
)
@@ -207,39 +207,39 @@ If you prefer not to use context managers, you can manage the client lifecycle m
0 commit comments