Auth Client Wrapper
This commit is contained in:
@@ -39,8 +39,9 @@ func newService(opts ...Option) Service {
|
||||
authFn := func() auth.Auth { return options.Server.Options().Auth }
|
||||
|
||||
// wrap client to inject From-Service header on any calls
|
||||
options.Client = wrapper.FromService(serviceName, options.Client, authFn)
|
||||
options.Client = wrapper.FromService(serviceName, options.Client)
|
||||
options.Client = wrapper.TraceCall(serviceName, trace.DefaultTracer, options.Client)
|
||||
options.Client = wrapper.AuthClient(serviceName, authFn, options.Client)
|
||||
|
||||
// wrap the server to provide handler stats
|
||||
options.Server.Init(
|
||||
|
Reference in New Issue
Block a user