MCPcopy Create free account
hub / github.com/dianping/cat / newTransaction

Method newTransaction

lib/java/src/main/java/com/dianping/cat/Cat.java:624–635  ·  view source on GitHub ↗

Create a new transaction with given type and name. @param type transaction type @param name transaction name

(String type, String name)

Source from the content-addressed store, hash-verified

622 * @param name transaction name
623 */
624 public static Transaction newTransaction(String type, String name) {
625 if (isEnabled()) {
626 try {
627 return Cat.getProducer().newTransaction(type, name);
628 } catch (Exception e) {
629 errorHandler(e);
630 return NullMessage.TRANSACTION;
631 }
632 } else {
633 return NullMessage.TRANSACTION;
634 }
635 }
636
637 /**
638 * Create a new transaction with given type and name and duration, duration time in millisecond

Callers 7

transactionMethod · 0.95
buildMetricMessageMethod · 0.95
sendEventDataMethod · 0.95
sendTransactionDataMethod · 0.95
buildExtenstionMethod · 0.95
buildHeartbeatMethod · 0.95
logTransactionMethod · 0.95

Calls 4

isEnabledMethod · 0.95
getProducerMethod · 0.95
errorHandlerMethod · 0.95
newTransactionMethod · 0.65

Tested by 1

transactionMethod · 0.76