- [**Upstream services(Code With SpringBoot)**](#Upstream-services(Code-With-SpringBoot))
## Name
**Skywalking**(https://github.com/apache/skywalking) is an OpenTracing plugin.\
The skywalking server can supports both http and grpc protocols . The APISIX client only support http protocols.
## Attributes
|Name |Requirement |Description|
|-------|-------|-------|
|endpoint|required| the http endpoint of Skywalking ,for example: http://127.0.0.1:12800|
|sample_ratio|required| the ratio of sample, the minimum is 0.00001, the maximum is 1|
|service_name|optional| service name for skywalking reporter, the default values is **APISIX**|
## How To Enable
Here's an example, enable the skywalking plugin on the specified route:
```shell
curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"methods": ["GET"],
"uris": [
"/uid/*"
],
"plugins": {
"skywalking": {
"endpoint": "http://10.110.149.175:12800",
"sample_ratio": 1,
"service_name": "APISIX_SERVER"
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"10.110.149.175:8089": 1
}
}
}'
```
You can open dashboard with a browser:`http://127.0.0.1:9080/apisix/dashboard/`,to complete the above operation through the web interface, first add a route:\
![](../images/plugin/skywalking-1.png)\
Then add skywalking plugin:\
![](../images/plugin/skywalking-2.png)
## Test Plugin
### Run-Skywalking-Example
#### e.g.
1. Run Skywalking Server:
- By default,use H2 storage , start skywalking directly