Skip to content

request help: skywalking-logger and error-log-logger plugin service_instance_name set $hostname invalid #7251

Description

@dickens7

Current Behavior

skywalking-logger and error-log-logger plugins set service_instance_name to $hostname and report to skywalking

instance is represented as "$hostname"string

image

Expected Behavior

Expect service instances to be a string of $hostname instead of "$hostname" after reporting to Skywalking

image

Error Logs

no error logs

Steps to Reproduce

We can refer to the skywalking plugin processing method

if local_plugin_info.service_instance_name == "$hostname" then
local_plugin_info.service_instance_name = core.utils.gethostname()
end

Environment

  • APISIX version (run apisix version): 2.13.1
  • Operating system (run uname -a): Linux apisix-844457679-8242t 5.10.102.1-microsoft-standard-WSL2+ change: added doc of how to load plugin. #1 SMP Mon Jun 13 04:56:19 UTC 2022 x86_64 Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V): openresty/1.19.9.1
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions