-
Notifications
You must be signed in to change notification settings - Fork 4k
Update cart service feature flag to match documented 10% failure #1593
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
Conversation
Matching the behavior documented in https://opentelemetry.io/docs/demo/feature-flags/ that both ad service and cart service failures are happening 10% of the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving because this is what is happening indeed.
But TBH this should be a bug in the FlagD project.
If the defaultVariant
is set to off
, I wouldn't expect this case to be enabled at all.
@beeme1mr do you know if there is anything being discussed in the community to solve this?
This is working as designed. The |
Ah, wait, now I'm confused. This is an issue on the docs, not on the demo. The behaviour that I was referring was the one in AdService, that it is failing 10% by default. @chook, would you mind updating the docs instead of the feature flag here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather have this updated in the docs, than in here.
By default we shouldn't have any error at start.
nothing is failing by default. only if you enable the feature flag. If you prefer to update the docs to show that cart will fail all the time and not tentatively (10-90), i'm game. Just wanted to contribute <3 |
Hey @julianocosta89, I think this is what you're looking for. "cartServiceFailure": {
"description": "Fail cart service",
// This will disable the flag. The SDK will use the default value set in the code. Which in this case is `false`.
// Valid states are "ENABLED" and "DISABLED"
"state": "DISABLED",
// Optional: The variant names could be changed to something like "fail" and "succeed".
"variants": {
"on": true,
"off": false
},
"targeting": {
// This will always return a value.
"fractional": [
{
"var": "session"
},
[ "on", 10],
[ "off", 90]
]
},
// The default variant is basically a fallback in case the targeting rule doesn't return a value.
"defaultVariant": "off"
}, I believe you'll want to update the flag configuration based on the suggestion above and update the documentation to talk about changing the state instead of the default variant. |
Yes!!!!!! |
@julianocosta89 this means we probably want to turn to DISABLED for the ad service as well, as it has the same issue I believe? cc @beeme1mr |
Yes! Personally, I'd get rid of the |
Yes, I would recommend changing both to "DISABLED" and updating the docs accordingly. @julianocosta89, |
i wonder if at this point we should continue this here or someone that is more familiar with flagd do a sweep to make the config/doc in better standard |
Sure, I just didn't want to overwrite your PR. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Matching the behavior documented in https://opentelemetry.io/docs/demo/feature-flags/ that both ad service and cart service failures are happening 10% of the time.
Changes
Please provide a brief description of the changes here.
Merge Requirements
For new features contributions please make sure you have completed the following
essential items:
CHANGELOG.md
updated to document new feature additionsMaintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.