Client Cache

This commit is contained in:
Ben Toogood
2020-05-22 16:52:24 +01:00
parent 0615fe825f
commit 7d7f4046e8
6 changed files with 130 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ func newService(opts ...Option) Service {
// wrap client to inject From-Service header on any calls
options.Client = wrapper.FromService(serviceName, options.Client)
options.Client = wrapper.TraceCall(serviceName, trace.DefaultTracer, options.Client)
options.Client = wrapper.CacheClient(options.Client)
options.Client = wrapper.AuthClient(authFn, options.Client)
// wrap the server to provide handler stats