コード例 #1
0
  private void linkContext(HTTPRequest httpRequest) {
    ActionLogContext.get(ActionLogContext.REQUEST_ID)
        .ifPresent(requestId -> httpRequest.header(HTTPServerHandler.HEADER_REQUEST_ID, requestId));

    ActionLogContext.get(ActionLogContext.TRACE)
        .ifPresent(
            trace -> {
              if ("true".equals(trace)) {
                httpRequest.header(HTTPServerHandler.HEADER_TRACE, "true");
              }
            });
  }