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

Method newTrace

lib/java/src/main/java/com/dianping/cat/Cat.java:605–616  ·  view source on GitHub ↗
(String type, String name)

Source from the content-addressed store, hash-verified

603 }
604
605 public static Trace newTrace(String type, String name) {
606 if (isEnabled()) {
607 try {
608 return Cat.getProducer().newTrace(type, name);
609 } catch (Exception e) {
610 errorHandler(e);
611 return NullMessage.TRACE;
612 }
613 } else {
614 return NullMessage.TRACE;
615 }
616 }
617
618 /**
619 * Create a new transaction with given type and name.

Callers

nothing calls this directly

Calls 4

isEnabledMethod · 0.95
getProducerMethod · 0.95
errorHandlerMethod · 0.95
newTraceMethod · 0.65

Tested by

no test coverage detected