diff --git a/CHANGELOG.md b/CHANGELOG.md index ddd0a64e..4f34486b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.7.0] - November 7th, 2019 +- Adds request timing metrics +- Allows config file location to be set +- Bumps go-sdk version to latest master + ## [0.6.0] - October 31st, 2019 * Adds a few more debug logs - Updates to latest master to resolve some targeting issues diff --git a/docs/getting-started.md b/docs/getting-started.md index 5395398f..d4d12ed6 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -66,7 +66,7 @@ From an API standpoint the presence of a Feature Test or Rollout is abstrated aw ```python user_id = 'test-user' -resp = s.post('http://localhost:8080/users/{}features/{}'.format(user_id, feature_key)) +resp = s.post('http://localhost:8080/users/{}/features/{}'.format(user_id, feature_key)) print(resp.json()) ``` diff --git a/go.mod b/go.mod index 73b9b9a0..396d6c61 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,13 @@ module github.com/optimizely/sidedoor go 1.12 require ( + github.com/VividCortex/gohistogram v1.0.0 // indirect github.com/go-chi/chi v4.0.2+incompatible github.com/go-chi/render v1.0.1 - github.com/go-kit/kit v0.9.0 // indirect + github.com/go-kit/kit v0.9.0 github.com/google/uuid v1.1.1 github.com/nsqio/nsq v1.2.0 - github.com/optimizely/go-sdk v1.0.0-beta5.0.20191031194604-0f774263df60 + github.com/optimizely/go-sdk v1.0.0-beta5.0.20191107230925-56b8e594724d github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 github.com/rs/zerolog v1.15.0 github.com/segmentio/nsq-go v1.2.2 diff --git a/go.sum b/go.sum index d482f5fd..f05acf44 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= @@ -100,8 +102,8 @@ github.com/nsqio/go-nsq v1.0.7/go.mod h1:XP5zaUs3pqf+Q71EqUJs3HYfBIqfK6G83WQMdNN github.com/nsqio/nsq v1.2.0 h1:inbQG4LAl8PpMMZAUi0FhLvjQ+57wOfPzWczVFdng7Q= github.com/nsqio/nsq v1.2.0/go.mod h1:hrx5K/ukZ1mebJBTNpv6og98a7I5zR279qjYNPdgdL0= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/optimizely/go-sdk v1.0.0-beta5.0.20191031194604-0f774263df60 h1:sberlPV1Wx4IJRAOZ5IAKYXl6TGW5JkGI7352ac51qA= -github.com/optimizely/go-sdk v1.0.0-beta5.0.20191031194604-0f774263df60/go.mod h1:bzmv9qgWRLndtLrghkyP+JRvuhqhNlq80nGdw9wvadc= +github.com/optimizely/go-sdk v1.0.0-beta5.0.20191107230925-56b8e594724d h1:D8KMxVq9sDpuy3cCkeIAQ0x0dW5BfNQV74gnSII9//0= +github.com/optimizely/go-sdk v1.0.0-beta5.0.20191107230925-56b8e594724d/go.mod h1:bzmv9qgWRLndtLrghkyP+JRvuhqhNlq80nGdw9wvadc= github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 h1:lNCW6THrCKBiJBpz8kbVGjC7MgdCGKwuvBgc7LoD6sw= github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= @@ -187,6 +189,7 @@ golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAG golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=