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
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->
## This PR
<!-- add the description of the PR here -->
- Add Tracking API following OpenFeature specifications
- Every requirement from
[tracking](https://openfeature.dev/specification/sections/tracking) has
been developed
- No breaking change
### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->
Fixes [51](#51)
---------
Signed-off-by: Mael RB <mael.rb@outlook.com>
Copy file name to clipboardExpand all lines: README.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ Task {
113
113
| ✅ |[Providers](#providers)| Integrate with a commercial, open source, or in-house feature management tool. |
114
114
| ✅ |[Targeting](#targeting)| Contextually-aware flag evaluation using [evaluation context](https://openfeature.dev/docs/reference/concepts/evaluation-context). |
115
115
| ✅ |[Hooks](#hooks)| Add functionality to various stages of the flag evaluation life-cycle. |
116
-
|❌|[Tracking](#tracking)| Associate user actions with feature flag evaluations. |
116
+
|✅|[Tracking](#tracking)| Associate user actions with feature flag evaluations. |
117
117
| ❌ |[Logging](#logging)| Integrate with popular logging packages. |
118
118
| ✅ |[MultiProvider](#multiprovider)| Utilize multiple providers in a single application. |
119
119
| ✅ |[Eventing](#eventing)| React to state changes in the provider or flag management system. |
@@ -163,7 +163,7 @@ Once you've added a hook as a dependency, it can be registered at the global, cl
// add a hook on this client, to run on all evaluations made by this client
166
-
val client = OpenFeatureAPI.shared.getClient()
166
+
let client = OpenFeatureAPI.shared.getClient()
167
167
client.addHooks(ExampleHook())
168
168
169
169
// add a hook for this evaluation only
@@ -174,7 +174,21 @@ _ = client.getValue(
174
174
```
175
175
### Tracking
176
176
177
-
Tracking is not yet available in the iOS SDK.
177
+
The tracking API allows you to use OpenFeature abstractions and objects to associate user actions with feature flag evaluations.
178
+
This is essential for robust experimentation powered by feature flags.
179
+
For example, a flag enhancing the appearance of a UI component might drive user engagement to a new feature; to test this hypothesis, telemetry collected by a [hook](#hooks) or [provider](#providers) can be associated with telemetry reported in the client's `track` function.
0 commit comments