提交 5bf02d35 编写于 作者: R Runrioter Wung 提交者: Xin,Zhang

docs: fix docs (#80)

上级 c6039571
......@@ -15,10 +15,10 @@ Skywalking provide two deploy mode, one is standalone mode and the other is clus
## Modify start script
Add the following the stuff to the start script
```
--require sw-egg-script --sw_pplication_code=Your_application_code --sw_direct_Servers=Collector_remote_grpc_address
--require skyapm-egg-require --sw_service_name=Your_service_name --sw_direct_Servers=Collector_remote_grpc_address
```
* `Your_application_code`: It used to differentiate between different applications. the value will be shown in WebUI.
* `Your_service_name`: It used to differentiate between different services. the value will be shown in WebUI.
* `Collector_agent_grpc_address`: This value should be consistent with the `agent_gRPC.gRPC` configuration items in the application.yml in the Collector project. (default value: localhost:11800)
......
......@@ -10,13 +10,14 @@ require and start the agent in your application’s main file.
```javascript
require('skyapm-nodejs').start({
// Application code is showed in sky-walking-ui. Suggestion: set an unique name for each application, one
// application's nodes share the same code.
// Service name is showed in sky-walking-ui. Suggestion: set an unique name for each service, one
// service's nodes share the same code.
// this value cannot be empty.
serviceName: 'test',
// Collector agent_gRPC/grpc service addresses.
// default value: localhost:11800
directServers: 'localhost:11800'
});
```
*NOTE*: If your application is using egg framework. please read the [deploy agent in egg framework](how-to-deploy-agent-in-egg-framework.md).
......@@ -9,5 +9,5 @@ npm i skyapm-egg-require --save
2. Add start arguments
add the following script arguments to the start script of your egg application.
```
--require sw-egg-script --sw_service_name=Your_application_code --sw_direct_Servers=Collector_agent_grpc_address
--require skyapm-egg-require --sw_service_name=Your_service_name --sw_direct_Servers=Collector_agent_grpc_address
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册