Package com.dianping.cat.message

Examples of com.dianping.cat.message.Transaction.complete()


        t.setStatus(Transaction.SUCCESS);
      } catch (Exception e) {
        t.setStatus(e);
        Cat.logError(e);
      } finally {
        t.complete();
      }

      long duration = System.currentTimeMillis() - current;

      try {
View Full Code Here


    Threads.forGroup("cat").start(new Task(id));
   
   
    Cat.logEvent("RemoteLink", "ChildThread3", Event.SUCCESS, id);
   
    t.complete();
   
    Thread.sleep(1000);
  }
 
  public static class Task implements Runnable{
View Full Code Here

      Transaction t = Cat.newTransaction("test2", "test2");
     
      Cat.getManager().getThreadLocalMessageTree().setMessageId(m_messageId);

      t.complete();
      }
  }
}
View Full Code Here

       
        Cat.logMetricForCount("Receipt Verify Success");

        MessageTree tree = (MessageTree) Cat.getManager().getThreadLocalMessageTree();
        tree.setDomain(TuanGou);
        t.complete();
      }

      for (int i = 0; i < 900; i++) {
        Transaction t = Cat.newTransaction("URL", "/detail");
        MessageTree tree = (MessageTree) Cat.getManager().getThreadLocalMessageTree();
View Full Code Here

        Transaction t = Cat.newTransaction("URL", "/detail");
        MessageTree tree = (MessageTree) Cat.getManager().getThreadLocalMessageTree();

        tree.setDomain(TuanGou);
        t.addData("channel=channel" + i % 5);
        t.complete();
      }

      for (int i = 0; i < 500; i++) {
        Transaction t = Cat.newTransaction("URL", "/order/submitOrder");
        MessageTree tree = (MessageTree) Cat.getManager().getThreadLocalMessageTree();
View Full Code Here

        tree.setDomain(PayOrder);
        Cat.logMetric("order", "quantity", 1, "channel", "channel" + i % 5);
        Cat.logMetric("payment.pending", "amount", i, "channel", "channel" + i % 5);
        Cat.logMetric("payment.success", "amount", i, "channel", "channel" + i % 5);
        t.addData("channel=channel" + i % 5);
        t.complete();
      }

      for (int i = 0; i < 1000; i++) {
        Transaction t = Cat.newTransaction("URL", "t");
        Cat.logEvent("RemoteLink", "sina", Event.SUCCESS, "http://sina.com.cn/");
View Full Code Here

      }

      for (int i = 0; i < 1000; i++) {
        Transaction t = Cat.newTransaction("URL", "t");
        Cat.logEvent("RemoteLink", "sina", Event.SUCCESS, "http://sina.com.cn/");
        t.complete();
      }
      for (int i = 0; i < 900; i++) {
        Transaction t = Cat.newTransaction("URL", "e");
        t.complete();
      }
View Full Code Here

        Cat.logEvent("RemoteLink", "sina", Event.SUCCESS, "http://sina.com.cn/");
        t.complete();
      }
      for (int i = 0; i < 900; i++) {
        Transaction t = Cat.newTransaction("URL", "e");
        t.complete();
      }
      for (int i = 0; i < 500; i++) {
        Transaction t = Cat.newTransaction("URL", "home");
        Cat.logMetric("order", "quantity", 1, "channel", "channel" + i % 5);
        Cat.logMetric("payment.pending", "amount", i, "channel", "channel" + i % 5);
View Full Code Here

      for (int i = 0; i < 500; i++) {
        Transaction t = Cat.newTransaction("URL", "home");
        Cat.logMetric("order", "quantity", 1, "channel", "channel" + i % 5);
        Cat.logMetric("payment.pending", "amount", i, "channel", "channel" + i % 5);
        Cat.logMetric("payment.success", "amount", i, "channel", "channel" + i % 5);
        t.complete();
      }

      Thread.sleep(1000);
    }
  }
View Full Code Here

      for (int i = 0; i < 1000; i++) {
        Transaction t = Cat.newTransaction("URL", "/index");
        Cat.logEvent("RemoteLink", "sina", Event.SUCCESS, "http://sina.com.cn/");
        t.addData("channel=channel" + i % 5);

        t.complete();
      }
      for (int i = 0; i < 900; i++) {
        Transaction t = Cat.newTransaction("URL", "/detail");
        t.addData("channel=channel" + i % 5);
        t.complete();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.