/** * Clears current span. */ public void clearCurrentSpan() { currentSpan().setCurrentSpan(ServerSpan.EMPTY); }
/** * Sets the current Trace/Span state. Using this method indicates that a parent request has decided that we should not * trace the current request. * * @see ServerTracer#setStateCurrentTrace(SpanId, String) * @see ServerTracer#setStateUnknown(String) */ public void setStateNoTracing() { currentSpan().setCurrentSpan(ServerSpan.NOT_SAMPLED); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof ServerTracer) { ServerTracer that = (ServerTracer) o; return (this.recorder.equals(that.recorder())) && (this.currentSpan.equals(that.currentSpan())) && (this.spanFactory.equals(that.spanFactory())); } return false; }
/** * Sets the server sent event for current thread. */ public void setServerSend() { if (submitEndAnnotation("ss")) { currentSpan().setCurrentSpan(ServerSpan.EMPTY); } }
void setStateCurrentTrace(Span span, String spanName) { checkNotBlank(spanName, "Null or blank span name"); recorder().name(span, spanName); currentSpan().setCurrentSpan(ServerSpan.create(span)); } /**