-
Notifications
You must be signed in to change notification settings - Fork 6.2k
[ffs] - Allow setting initial feature flag values #1319
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 4 commits
c93fbba
7d2b2a5
fae0651
c588931
2f2ee1b
629219c
3041183
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| -- Copyright The OpenTelemetry Authors | ||
| -- SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| CREATE TABLE public.featureflags ( | ||
| name character varying(255), | ||
| description character varying(255), | ||
| enabled double precision DEFAULT 0.0 NOT NULL | ||
| ); | ||
|
|
||
| ALTER TABLE ONLY public.featureflags ADD CONSTRAINT featureflags_pkey PRIMARY KEY (name); | ||
|
|
||
| CREATE UNIQUE INDEX featureflags_name_index ON public.featureflags USING btree (name); | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| -- Copyright The OpenTelemetry Authors | ||
| -- SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| -- Feature Flags created and initialized on startup | ||
| -- 'enabled' is a decimal value between 0 and 1 (inclusive) | ||
| -- 0.0 is always disabled | ||
| -- 1.0 is always enabled | ||
| -- All values between set a percentage chance on each request | ||
| -- example: 0.55 is enabled 55% of the time | ||
| INSERT INTO public.featureflags (name, description, enabled) | ||
| VALUES | ||
| ('productCatalogFailure', 'Fail product catalog service on a specific product', 0), | ||
| ('recommendationCache', 'Cache recommendations', 0), | ||
| ('adServiceFailure', 'Fail ad service requests sporadically', 0), | ||
puckpuck marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ('cartServiceFailure', 'Fail cart service requests sporadically', 0); | ||
Uh oh!
There was an error while loading. Please reload this page.