{"repo":"Intellection/zexbox","free":true,"listed":false,"github":"https://github.com/Intellection/zexbox","clone":"git clone https://github.com/Intellection/zexbox.git","description":"Logging, Metrics and Feature Flagging in Elixir. Brought to you by Zappi.","language":"Elixir","stars":15,"topics":["elixir","feature-flags","logging","metrics","telemetry","internal-tooling","library","platform-ops"],"license":"MIT","category":"analytics","readme_excerpt":"Zexbox Installation LaunchDarkly Feature Flags The Zexbox library provides an idiomatic Elixir wrapper around the LaunchDarkly Erlang SDK with support for contexts, multi-contexts, and all modern LaunchDarkly features. Configuration Configuration is fairly simple, with the only required piece of configuration being the sdk key . For production environments we recommend also including :email as a private attribute: For local development and testing you'll probably want to read flags from a local file and ensure there is no interaction with the LaunchDarkly API. While the two configurations will be very similar you should have different ones to put to different files. You're configurations will look something like this following: Implementing In order to use feature flags you need to start the LaunchDarkly client. You should do this in the start/2 function of your Application module: This will initialise a LauncDarkly client with the :default tag and using the configuration you've defined in your app. If you wish to use a different tag you can make use of Zexbox.Flags.start/1 Additionally, if you don't want to make use of the application config you can use Zexbox.Flags.start/2 You can then shut the :default client down when your app does in the Zexbox.Flags.stop/0 function of your Application module: Stopping a client with a custom tag can be done using the Zexbox.Flags.stop/1 function. Using Contexts Contexts are the recommended way to evaluate feature flags. They provide type","default_branch":null,"files":null,"tree":[],"storefront":"/r/Intellection","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Intellection/zexbox/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}