@Override public BraveSpan annotate(String value) { span.annotate(value); return this; }
void logEvent(Span span, String name) { if (span == null) { logger.warn("You were trying to continue a span which was null. Please " + "remember that if two proxied methods are calling each other from " + "the same class then the aspect will not be properly resolved"); return; } span.annotate(name); }
public static void logWireSend(Span span, long wireSendTimeNanos, RequestLog requestLog) { span.annotate(SpanContextUtil.wallTimeMicros(requestLog, wireSendTimeNanos), WIRE_SEND_ANNOTATION); }
public static void logWireReceive(Span span, long wireSendTimeNanos, RequestLog requestLog) { span.annotate(SpanContextUtil.wallTimeMicros(requestLog, wireSendTimeNanos), WIRE_RECEIVE_ANNOTATION); }
@Override public BraveSpan annotate(String value) { span.annotate(value); return this; }
@Override public BraveSpan log(String event) { if (finishCalled) return this; delegate.annotate(event); return this; }
@Override public BraveSpan log(long timestampMicroseconds, String event) { if (finishCalled) return this; delegate.annotate(timestampMicroseconds, event); return this; }
void logEvent(Span span, String name) { if (span == null) { logger.warn("You were trying to continue a span which was null. Please " + "remember that if two proxied methods are calling each other from " + "the same class then the aspect will not be properly resolved"); return; } span.annotate(name); }
void afterCommit(CON connectionKey, Throwable t) { Span connectionSpan = connectionSpans.get(connectionKey); if (connectionSpan == null) { // Connection is already closed return; } if (t != null) { connectionSpan.error(t); } connectionSpan.annotate("commit"); }
@Override public void timeline(String message) { final Span current = tracer.currentSpan(); if (current != null) { current.annotate(message); } }
@Override public void timeline(String message) { final Span current = tracer.currentSpan(); if (current != null) { current.annotate(message); } }
@Override void annotate(Span span, long timestamp, String value) { brave4(span).annotate(timestamp, value); }
void afterRollback(CON connectionKey, Throwable t) { Span connectionSpan = connectionSpans.get(connectionKey); if (connectionSpan == null) { // Connection is already closed return; } if (t != null) { connectionSpan.error(t); } else { connectionSpan.tag("error", "Transaction rolled back"); } connectionSpan.annotate("rollback"); }