Skip to content

Commit d4b244f

Browse files
author
Bernd Warmuth
committed
chore: added doc to README.md
Signed-off-by: Bernd Warmuth <[email protected]>
1 parent 590cb79 commit d4b244f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,16 @@ Once you've added a hook as a dependency, it can be registered at the global, cl
215215
FlagEvaluationOptions.builder().hook(new ExampleHook()).build());
216216
```
217217

218+
### Tracking
219+
220+
The [tracking API](https://openfeature.dev/specification/sections/tracking/) allows you to use OpenFeature abstractions to associate user actions with feature flag evaluations.
221+
This is essential for robust experimentation powered by feature flags.
222+
223+
```java
224+
OpenFeatureAPI api = OpenFeatureAPI.getInstance();
225+
api.getClient().track("visited-promo-page", new MutableTrackingEventDetails(99.77).add("conurrencyCode", "USD"))
226+
```
227+
218228
### Logging
219229

220230
The Java SDK uses SLF4J. See the [SLF4J manual](https://slf4j.org/manual.html) for complete documentation.

0 commit comments

Comments
 (0)