-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Add support for /decide?v=4 along with start capturing $feature_flag_called events
#22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
7980c65
438a5c4
e31282f
0d5d40c
95a0e21
9b25c99
1298008
294d126
42040e5
48b66ea
34742be
0d45209
4a98477
9184746
856c44d
da80228
d358cde
f78b873
e6fd9a7
6ad6aa2
6b11bf9
eec1890
c910c5e
800a0d6
794aeb1
6d13b6e
2d9d7b1
ee4d864
820a5f6
f8c0a68
6f69a2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/usr/bin/env bash | ||
| #/ Usage: bin/test | ||
| #/ Description: Runs all the unit tests for this project | ||
| source bin/helpers/_utils.sh | ||
| set_source_and_root_dir | ||
|
|
||
| mix format |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| defmodule Posthog.Application do | ||
| @moduledoc false | ||
|
|
||
| use Application | ||
|
|
||
| def start(_type, _args) do | ||
| children = [ | ||
| # Start Cachex for feature flag event deduplication. | ||
| # The 50,000 entries limit is the same used for posthog-python, but otherwise arbitrary. | ||
| {Cachex, name: :posthog_feature_flag_cache, limit: 50_000, policy: Cachex.Policy.LRW} | ||
|
||
| ] | ||
|
|
||
| opts = [strategy: :one_for_one, name: Posthog.Supervisor] | ||
| Supervisor.start_link(children, opts) | ||
| end | ||
| end | ||
Uh oh!
There was an error while loading. Please reload this page.