Unleash / unleash-client-go

Unleash client SDK for Go
https://docs.getunleash.io
Apache License 2.0
138 stars 55 forks source link

force getVariant to also add to the feature toggle metrics counter #124

Closed gastonfournier closed 1 year ago

gastonfournier commented 1 year ago

This forces resolving a variant to correctly add to the feature toggle counter metrics. Also fixes an issue where variants wouldn't get counted for the default/disabled case (brings this SDK inline with the behaviour of its siblings)

Also, other unrelated changes:

  1. Moved unleash_test.go to unleash_mock.go because it was in unleash package and not having any test
  2. Improved the Readme due to an unexisting command