Skip to content

Commit

Permalink
FFM-8890 Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
erdirowlands committed Aug 2, 2023
1 parent 98f848c commit 5bc2f76
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ config :cfclient,
## Set logging level
Optionally you may set the required log level of the SDK. If not provided, the SDK will default to `warning`.


#### Elixir logging configuration example
```elixir
config :cfclient,
Expand Down Expand Up @@ -209,6 +208,29 @@ config :cfclient,
]}]
```

## Experimental: Use Flag Identifier with Percentage Rollout Hash

### Elixir

To enable this, set `hash_flag_and_target_ids` to true.

If `hash_flag_and_target_ids` is not explicitly set, or set to false, the SDK will use the original hashing method.

```elixir
log_level: :debug,
verbose_evaluation_logs: true,
[api_key: System.get_env("FF_API_KEY_0"),
# For additional config you can pass in, see Erlang SDK docs: https://github.com/harness/ff-erlang-server-sdk/blob/main/docs/further_reading.md#further-reading
# we are just using the main config url here as an example.
config: [
config_url: "https://config.ff.harness.io/api/1.0",
events_url: "https://events.ff.harness.io/api/1.0",
poll_interval: 60000,
analytics_enabled: true,
hash_flag_and_target_ids: true
]]
```

## Run multiple instances of the SDK

The SDK by default starts up a single instance called `default` which is configured with your project API key.
Expand Down

0 comments on commit 5bc2f76

Please sign in to comment.