void popScope() { if (depth <= 0) { throwClientError("There were more trace scopes closed than " + "were opened."); } depth--; } };
@Override public void detach() { if (detached) { Tracer.throwClientError("Can't detach this TraceScope because " + "it is already detached."); } detached = true; }
@Override public void reattach() { if (!detached) { Tracer.throwClientError("Can't reattach this TraceScope because " + "it is not detached."); } detached = false; }
@Override public void detach() { if (detached) { Tracer.throwClientError("Can't detach this TraceScope because " + "it is already detached."); } detached = true; }
@Override public void reattach() { if (!detached) { Tracer.throwClientError("Can't reattach this TraceScope because " + "it is not detached."); } detached = false; }
void popScope() { if (depth <= 0) { throwClientError("There were more trace scopes closed than " + "were opened."); } depth--; } };
@Override public void reattach() { if (!detached) { Tracer.throwClientError("Can't reattach this TraceScope because " + "it is not detached."); } detached = false; }
@Override public void detach() { if (detached) { Tracer.throwClientError("Can't detach this TraceScope because " + "it is already detached."); } detached = true; }
/** * Attach this TraceScope to the current thread. */ public void reattach() { if (!detached) { Tracer.throwClientError("Can't reattach this TraceScope because " + "it is not detached."); } tracer.reattachScope(this); detached = false; }
public TracerPool getTracerPool() { if (tracerPool == null) { throwClientError(toString() + " is closed."); } return tracerPool; }
public TracerPool getTracerPool() { if (tracerPool == null) { throwClientError(toString() + " is closed."); } return tracerPool; }
/** * Attach this TraceScope to the current thread. */ public void reattach() { if (!detached) { Tracer.throwClientError("Can't reattach this TraceScope because " + "it is not detached."); } tracer.reattachScope(this); detached = false; }
/** * Attach this TraceScope to the current thread. */ public void reattach() { if (!detached) { Tracer.throwClientError("Can't reattach this TraceScope because " + "it is not detached."); } tracer.reattachScope(this); detached = false; }
public TracerPool getTracerPool() { if (tracerPool == null) { throwClientError(toString() + " is closed."); } return tracerPool; }
void popNullScope() { TraceScope curScope = threadLocalScope.get(); if (curScope != null) { throwClientError("Attempted to close an empty scope, but it was not " + "the current thread scope in thread " + Thread.currentThread().getName()); } ThreadContext context = threadContext.get(); context.popScope(); }
void popNullScope() { TraceScope curScope = threadLocalScope.get(); if (curScope != null) { throwClientError("Attempted to close an empty scope, but it was not " + "the current thread scope in thread " + Thread.currentThread().getName()); } ThreadContext context = threadContext.get(); context.popScope(); }
void popNullScope() { TraceScope curScope = threadLocalScope.get(); if (curScope != null) { throwClientError("Attempted to close an empty scope, but it was not " + "the current thread scope in thread " + Thread.currentThread().getName()); } ThreadContext context = threadContext.get(); context.popScope(); }
void detachScope(TraceScope scope) { TraceScope curScope = threadLocalScope.get(); if (curScope != scope) { throwClientError("Can't detach TraceScope for " + scope.getSpan().toJson() + " because it is not the current " + "TraceScope in thread " + Thread.currentThread().getName()); } ThreadContext context = threadContext.get(); context.popScope(); threadLocalScope.set(scope.getParent()); }
void detachScope(TraceScope scope) { TraceScope curScope = threadLocalScope.get(); if (curScope != scope) { throwClientError("Can't detach TraceScope for " + scope.getSpan().toJson() + " because it is not the current " + "TraceScope in thread " + Thread.currentThread().getName()); } ThreadContext context = threadContext.get(); context.popScope(); threadLocalScope.set(scope.getParent()); }
void detachScope(TraceScope scope) { TraceScope curScope = threadLocalScope.get(); if (curScope != scope) { throwClientError("Can't detach TraceScope for " + scope.getSpan().toJson() + " because it is not the current " + "TraceScope in thread " + Thread.currentThread().getName()); } ThreadContext context = threadContext.get(); context.popScope(); threadLocalScope.set(scope.getParent()); }