コード例 #1
0
        internal static OpenTracingTracer CreateTracer(Uri agentEndpoint, string defaultServiceName = null, DelegatingHandler delegatingHandler = null, bool isDebugEnabled = false)
        {
            var api         = new Api(agentEndpoint, delegatingHandler);
            var agentWriter = new AgentWriter(api);
            var ddTracer    = new Tracer(agentWriter, defaultServiceName, isDebugEnabled);
            var tracer      = new OpenTracingTracer(ddTracer);

            return(tracer);
        }
コード例 #2
0
 internal OpenTracingSpanBuilder(OpenTracingTracer tracer, string operationName)
 {
     _tracer        = tracer;
     _operationName = operationName;
 }