Beispiel #1
0
        public ConsumerTrace(string serviceName, string rpc)
        {
            if (zipkin4net.Trace.Current != null)
            {
                Trace = zipkin4net.Trace.Current.Child();
            }

            Trace.Record(Annotations.Rpc(rpc));
            Trace.Record(Annotations.MessageAddr(serviceName, UtilHelper.CreateIPEndPoint("127.1.1.1:8080")));
            Trace.Record(Annotations.ConsumerStart());
            Trace.Record(Annotations.ServiceName(serviceName));
        }