An-DJ commented on issue #9031:
URL: https://github.com/apache/apisix/issues/9031#issuecomment-1463289310

   I can't reproduce this issue in my local env based on APISIX 3.2. Maybe you 
can follow my steps to check:
   
   1. Create a Route with skywalking open:
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes"; -X PUT -d '
   {
     "id": "ip",
     "uri": "/ip",
     "plugins": {
       "skywalking":{}
     },
     "upstream": {
       "type": "roundrobin",
       "nodes": {
         "httpbin.org:80": 1
       }
     }
   }'
   ```
   2. Create a global config with skywalking open:
   ```
   curl http://127.0.0.1:9180/apisix/admin/plugin_configs/1 \
   -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "plugins": {
         "skywalking":{}
       }
   }'
   ```
   3. Request the uri and there is a record in skywalking.
   ```
   curl "http://localhost:9080/ip";
   ```
   
![image](https://user-images.githubusercontent.com/24536972/224228331-cbe85f03-f55b-4d96-a0ee-0dfe17c22fad.png)
   
   4. Close the skywalking in route level, then request again and check, there 
are **no new records**.
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes/ip"; -X PATCH -d '
   {
     "plugins": {
       "skywalking": {
           "_meta": {
             "disable": true
           }
         }
     }
   }'
   ```
   5. Reopen in route level and request again, there is a new record:
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes/ip"; -X PATCH -d '
   {
     "plugins": {
       "skywalking": {
           "_meta": {
             "disable": false
           }
         }
     }
   }'
   ```
   
![image](https://user-images.githubusercontent.com/24536972/224228542-645c7a04-a67d-44cd-bcdb-44b97a31421d.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to