private void SetUpRestSharpZipkinTracerClient(IRestClient innerClient, string restClientAppName,
                                               string zipkinServerName)
 {
     restClientHandler   = TracingRestClientHandler.WithoutInnerHandler(restClientAppName);
     this.innerClient    = innerClient ?? throw new ArgumentNullException("innerClient");
     restClientAppName   = restClientAppName ?? throw new ArgumentNullException("restClientAppName");
     zipkinServerName    = zipkinServerName ?? throw new ArgumentNullException("zipkinServerName");
     traceHeaderInjector = new ZipkinB3TraceHeaderInjector(restClientAppName, zipkinServerName);
 }
Пример #2
0
        public TraceRestClient(IRestClient innerClient)

        {
            RestClientHandler = TracingRestClientHandler.WithoutInnerHandler("RestSharpZipkin");
            _innerClient      = innerClient;
        }