/** * Detach this TraceScope from the current thread. * * It is OK to "leak" TraceScopes which have been detached. They will not * consume any resources other than a small amount of memory until they are * garbage collected. On the other hand, trace scopes which are still * attached must never be leaked. */ public void detach() { if (detached) { Tracer.throwClientError("Can't detach this TraceScope because " + "it is already detached."); } tracer.detachScope(this); detached = true; parent = null; }
/** * Detach this TraceScope from the current thread. * * It is OK to "leak" TraceScopes which have been detached. They will not * consume any resources other than a small amount of memory until they are * garbage collected. On the other hand, trace scopes which are still * attached must never be leaked. */ public void detach() { if (detached) { Tracer.throwClientError("Can't detach this TraceScope because " + "it is already detached."); } tracer.detachScope(this); detached = true; parent = null; }
/** * Detach this TraceScope from the current thread. * * It is OK to "leak" TraceScopes which have been detached. They will not * consume any resources other than a small amount of memory until they are * garbage collected. On the other hand, trace scopes which are still * attached must never be leaked. */ public void detach() { if (detached) { Tracer.throwClientError("Can't detach this TraceScope because " + "it is already detached."); } tracer.detachScope(this); detached = true; parent = null; }