Skip to content

Commit 4a4f7b4

Browse files
committed
feat(launchdarkly-provider): Update README.md
1 parent 3127733 commit 4a4f7b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libs/providers/launchdarkly-client/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ await OpenFeature.setContext({ key: 'my-key' });
5959

6060
Read more about LD contexts [here](https://launchdarkly.github.io/js-client-sdk/interfaces/LDContextCommon.html)
6161

62+
## Tracking
63+
64+
You can send custom events to LaunchDarkly metrics for use in
65+
experiments and guarded rollouts. To learn more, read [Metrics](https://launchdarkly.com/docs/home/observability/metrics).
66+
67+
```ts
68+
const client = await OpenFeature.getClient();
69+
client.track('event-key-123abc', { customProperty: someValue })
70+
```
71+
6272
## Building
6373

6474
Run `nx package providers-launchdarkly-client` to build the library.

0 commit comments

Comments
 (0)