Skip to content

Commit 641d24f

Browse files
author
Bernd Warmuth
committed
fixup! chore: added doc to README.md
Signed-off-by: Bernd Warmuth <[email protected]>
1 parent 0c4de52 commit 641d24f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ Once you've added a hook as a dependency, it can be registered at the global, cl
218218
### Tracking
219219

220220
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.
221+
This is essential for robust experimentation powered by feature flags. Note that, unlike methods that handle feature flag evaluations, calling `track(...)` may throw an `IllegalArgumentException` if an empty string is passed as the `trackingEventName`.
222222

223223
```java
224224
OpenFeatureAPI api = OpenFeatureAPI.getInstance();
225-
api.getClient().track("visited-promo-page", new MutableTrackingEventDetails(99.77).add("currency", "USD"))
225+
api.getClient().track("visited-promo-page", new MutableTrackingEventDetails(99.77).add("currency", "USD"));
226226
```
227227

228228
### Logging

0 commit comments

Comments
 (0)