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

Method newEvent

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

Source from the content-addressed store, hash-verified

590 }
591
592 public static Event newEvent(String type, String name) {
593 if (isEnabled()) {
594 try {
595 return Cat.getProducer().newEvent(type, name);
596 } catch (Exception e) {
597 errorHandler(e);
598 return NullMessage.EVENT;
599 }
600 } else {
601 return NullMessage.EVENT;
602 }
603 }
604
605 public static Trace newTrace(String type, String name) {
606 if (isEnabled()) {

Callers 7

invokeMethod · 0.95
createConsumerCrossMethod · 0.95
createProviderCrossMethod · 0.95
invokeMethod · 0.95
createConsumerCrossMethod · 0.95
createProviderCrossMethod · 0.95
sendEventDataMethod · 0.95

Calls 4

isEnabledMethod · 0.95
getProducerMethod · 0.95
errorHandlerMethod · 0.95
newEventMethod · 0.65

Tested by

no test coverage detected