private boolean leaveUserIncludeTraceScope(final Trace trace) { final TraceScope scope = trace.getScope(SCOPE_NAME); if (scope != null) { if (scope.canLeave()) { scope.leave(); } else { return false; } } return true; }
private boolean isUserIncludeTraceDestination(final Trace trace) { final TraceScope scope = trace.getScope(SCOPE_NAME); return scope != null && !scope.isActive(); }
private boolean isUserIncludeTrace(final Trace trace) { final TraceScope scope = trace.getScope(SCOPE_NAME); return scope != null; }
private void entryUserIncludeTraceScope(final Trace trace) { final TraceScope scope = trace.getScope(SCOPE_NAME); if (scope != null) { scope.tryEnter(); } }