-
Notifications
You must be signed in to change notification settings - Fork 2
Support Datadog feature flags #208
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
3d4fc3a to
e09b016
Compare
e09b016 to
826b998
Compare
ofek
left a comment
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.
Took a first pass, looking good so far!
a9c82ad to
3315e9c
Compare
3315e9c to
d0ef55f
Compare
ofek
left a comment
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 think this is my final pass, thanks a lot!
6b8fd15 to
536a5fc
Compare
536a5fc to
d7a0c79
Compare
2165e46 to
e0fc87d
Compare
e5c50d1 to
a7a0f61
Compare
a7a0f61 to
fa3cd53
Compare
ofek
left a comment
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.
Great work, thanks!
* Support Datadog feauture flags * Address comment + some doc about using feature flags * Address comments round 2 * Disable in the CI for now * Address latest comments 2534fa6
Introduce Feature Flag support inside
ddacommands.Mostly solve the problems described in: https://datadoghq.atlassian.net/wiki/spaces/~7120201870126a495245b69e47156354de0ad9/pages/5569413152/Feature+Flags+dda?atlOrigin=eyJpIjoiZWI5Y2NjNTRhMDViNDc3NmFkYWNlNGVmOGExMjkzY2QiLCJwIjoiYyJ9
In that PR feature flags are only supported when running command locally.
A client token is required and will be fetched using the same mechanism as for the telemetry API key.
The feature flag can be used easily inside the application code by calling
app.features.enabled("flag", "default_value", extra_context)The extra context is not needed, by default the context is populated here and contains info about whether this is a CI run, and the username if it exists