code: public static void stopManagingThread() {
          try {
              if (!isManagingThread()) {
                  //Start managing the thread only to send the warning
                  startManagingThread();
                  logger.warn("Thread not yet managed by Sentry");
              }
          } finally {
              if (SENTRY_THREAD.get().decrementAndGet() == 0) {
                  // Remove the ThreadLocal so we don't log leak warnings on Tomcat.
                  // The next get/incr (if any) will re-initialize it to 0.
                  SENTRY_THREAD.remove();
              }
          }
      }
docs: Sets the current thread as not managed by Sentry.
  <p>
  The logs generated by Threads not managed by Sentry will send logs to Sentry.