-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(skywalking): allow destory and configure report interval for rep… #3925
Conversation
…orter Fix apache#2895 Signed-off-by: spacewander <[email protected]>
docs/en/latest/plugins/skywalking.md
Outdated
@@ -92,6 +92,7 @@ We can set the endpoint by specified the configuration in `conf/config.yaml`. | |||
| service_name | string | "APISIX" | service name for skywalking reporter | | |||
|service_instance_name|string|"APISIX Instance Name" | service instance name for skywalking reporter | | |||
| endpoint | string | "http://127.0.0.1:12800" | the http endpoint of Skywalking, for example: http://127.0.0.1:12800 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| endpoint | string | "http://127.0.0.1:12800" | the http endpoint of Skywalking, for example: http://127.0.0.1:12800 | | |
| endpoint_addr | string | "http://127.0.0.1:12800" | the http endpoint of Skywalking, for example: http://127.0.0.1:12800 | |
The endpoint
field name is typo, we should fix it by the way?
docs/zh/latest/plugins/skywalking.md
Outdated
@@ -96,6 +96,7 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f1 | |||
| service_name | string | "APISIX" | skywalking 上报的 service 名称 | | |||
|service_instance_name|string| "APISIX Instance Name" | skywalking 上报的 service 实例名 | | |||
| endpoint | string | "http://127.0.0.1:12800" | Skywalking 的 HTTP endpoint 地址,例如:http://127.0.0.1:12800 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Firstsawyou
Updated.
Signed-off-by: spacewander <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
apisix/plugins/skywalking.lua
Outdated
sk_cli:startBackendTimer(local_plugin_info.endpoint_addr) | ||
end | ||
|
||
|
||
function _M.destroy() | ||
if process.type() ~= "worker" and process.type() ~= "single" then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove process.type() ~= "single"
, right?
@@ -91,7 +91,8 @@ We can set the endpoint by specified the configuration in `conf/config.yaml`. | |||
| ------------ | ------ | -------- | -------------------------------------------------------------------- | | |||
| service_name | string | "APISIX" | service name for skywalking reporter | | |||
|service_instance_name|string|"APISIX Instance Name" | service instance name for skywalking reporter | | |||
| endpoint | string | "http://127.0.0.1:12800" | the http endpoint of Skywalking, for example: http://127.0.0.1:12800 | | |||
| endpoint_addr| string | "http://127.0.0.1:12800" | the http endpoint of Skywalking, for example: http://127.0.0.1:12800 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!!
Signed-off-by: spacewander <[email protected]>
Signed-off-by: spacewander <[email protected]>
…orter (apache#3925) Fix apache#2895 Signed-off-by: spacewander <[email protected]>
…orter
Fix #2895
Signed-off-by: spacewander [email protected]
What this PR does / why we need it:
Pre-submission checklist: