Skip to content

Commit ddb60c5

Browse files
chore: update sdk readmes (#999)
The PR was automatically generated via the update-sdk-docs GitHub workflow. Signed-off-by: OpenFeature Bot <[email protected]>
1 parent 40c0726 commit ddb60c5

File tree

15 files changed

+56
-26
lines changed

15 files changed

+56
-26
lines changed

docs/reference/technologies/client/kotlin.mdx

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from kotlin-sdk.
1010
Edits should be made here: https://github.com/open-feature/kotlin-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:34 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:49 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">
@@ -72,7 +72,7 @@ coroutineScope.launch(Dispatchers.IO) {
7272
|| [Tracking](#tracking) | Associate user actions with feature flag evaluations. |
7373
|| [Logging](#logging) | Integrate with popular logging packages. |
7474
|| [Named clients](#named-clients) | Utilize multiple providers in a single application. |
75-
| | [Eventing](#eventing) | React to state changes in the provider or flag management system. |
75+
| | [Eventing](#eventing) | React to state changes in the provider or flag management system. |
7676
|| [Shutdown](#shutdown) | Gracefully clean up a provider during application shutdown. |
7777
| ⚠️ | [Extending](#extending) | Extend OpenFeature with custom providers and hooks. |
7878

@@ -167,13 +167,35 @@ Tracking is optionally implemented by Providers.
167167

168168
Logging customization is not yet available in the Kotlin SDK.
169169

170+
It is possible to write and inject logging `Hook`s to log events at different stages of the flag evaluation life-cycle.
171+
170172
### Named clients
171173

172174
Support for named clients is not yet available in the Kotlin SDK.
173175

174176
### Eventing
175177

176-
Support for eventing is not yet available in the Kotlin SDK.
178+
Events from the Provider allow the SDK to react to state changes in the provider or underlying flag management system, such as flag definition changes, provider readiness, or error conditions.
179+
Events are optional which mean that not all Providers will emit them and it is not a must have. Some providers support additional events, such as `PROVIDER_CONFIGURATION_CHANGED`.
180+
181+
Please refer to the documentation of the provider you're using to see what events are supported.
182+
183+
Example usage:
184+
```kotlin
185+
viewModelScope.launch {
186+
OpenFeatureAPI.observe().collect {
187+
println(">> Provider event received")
188+
}
189+
}
190+
191+
viewModelScope.launch {
192+
OpenFeatureAPI.setProviderAndWait(
193+
MyFeatureProvider(),
194+
Dispatchers.IO,
195+
myEvaluationContext
196+
)
197+
}
198+
```
177199

178200
### Shutdown
179201

@@ -240,6 +262,18 @@ class NewProvider(override val hooks: List<Hook<*>>, override val metadata: Meta
240262
override suspend fun onContextSet(oldContext: EvaluationContext?, newContext: EvaluationContext) {
241263
// add necessary changes on context change
242264
}
265+
266+
override fun track(
267+
trackingEventName: String,
268+
context: EvaluationContext?,
269+
details: TrackingEventDetails?
270+
) {
271+
// Optionally track an event
272+
}
273+
274+
override fun observe(): Flow<OpenFeatureProviderEvents> {
275+
// Optionally return a `Flow` of OpenFeatureProviderEvents
276+
}
243277
}
244278
```
245279

docs/reference/technologies/client/swift.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from swift-sdk.
1010
Edits should be made here: https://github.com/open-feature/swift-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:34 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:49 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">

docs/reference/technologies/client/web/angular.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from js-sdk.
1010
Edits should be made here: https://github.com/open-feature/js-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:34 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:50 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">

docs/reference/technologies/client/web/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from js-sdk.
1010
Edits should be made here: https://github.com/open-feature/js-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:33 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:49 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">

docs/reference/technologies/client/web/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from js-sdk.
1010
Edits should be made here: https://github.com/open-feature/js-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:33 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:49 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">

docs/reference/technologies/server/dotnet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from dotnet-sdk.
1010
Edits should be made here: https://github.com/open-feature/dotnet-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:32 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:48 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
[![Specification](https://img.shields.io/static/v1?label=specification&message=v0.7.0&color=yellow&style=for-the-badge)](https://github.com/open-feature/spec/releases/tag/v0.7.0)

docs/reference/technologies/server/go.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This content has been automatically generated from go-sdk.
99
Edits should be made here: https://github.com/open-feature/go-sdk
1010
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1111

12-
Last updated at Wed Feb 19 2025 13:28:33 GMT+0000 (Coordinated Universal Time)
12+
Last updated at Thu Mar 06 2025 08:09:48 GMT+0000 (Coordinated Universal Time)
1313
-->
1414

1515
<p align="center" class="github-badges">

docs/reference/technologies/server/java.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This content has been automatically generated from java-sdk.
99
Edits should be made here: https://github.com/open-feature/java-sdk
1010
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1111

12-
Last updated at Wed Feb 19 2025 13:28:32 GMT+0000 (Coordinated Universal Time)
12+
Last updated at Thu Mar 06 2025 08:09:48 GMT+0000 (Coordinated Universal Time)
1313
-->
1414

1515
<p align="center" class="github-badges">

docs/reference/technologies/server/javascript/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from js-sdk.
1010
Edits should be made here: https://github.com/open-feature/js-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:32 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:48 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">

docs/reference/technologies/server/javascript/nestjs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This content has been automatically generated from js-sdk.
1010
Edits should be made here: https://github.com/open-feature/js-sdk
1111
Once a repo has been updated, docs can be generated by running: yarn update:sdk-docs
1212

13-
Last updated at Wed Feb 19 2025 13:28:32 GMT+0000 (Coordinated Universal Time)
13+
Last updated at Thu Mar 06 2025 08:09:48 GMT+0000 (Coordinated Universal Time)
1414
-->
1515

1616
<p align="center" class="github-badges">

0 commit comments

Comments
 (0)