docs: @Override
      public void setTraceRouter(WsTraceRouter traceRouter) {
  
          internalTraceRouter.set(traceRouter);
  
          // Pass the earlierMessages queue to the router.
          // Now that the internalMessageRouter is non-null, this class will
          // NOT add any more messages to the earlierMessages queue.
          // The MessageRouter basically owns the earlierMessages queue
          // from now on.
          if (earlierTraces != null) {
              synchronized (this) {
                  if (earlierTraces != null) {
                      traceRouter.setEarlierTraces(earlierTraces);
                  }
              }
          } else {
              traceRouter.setEarlierTraces(null);
          }
      }