-
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: add error log skywalking reporter #4633
Conversation
If these changes are ok in basically, I will update the related docs and tests. |
@dmsolr Please also replenish the documents. |
|
||
|
||
|
||
=== TEST 5: log an warn level message |
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.
What information did I miss? What's the point of these tests.
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.
This case is testing whether a warning message could be wrapper as the skywalking log format
t/plugin/error-log-logger.t
Outdated
@@ -281,7 +287,115 @@ passed | |||
|
|||
|
|||
|
|||
=== TEST 9: want to reload the plugin by route | |||
=== TEST 9: log a warn level message (schema compatibility testing) |
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.
Better to add test at the end of file
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 have resetting environment tasks at the end.
| tcp.port | integer | required | | [0,...] | Target upstream port. | | ||
| tcp.tls | boolean | optional | false | | Control whether to perform SSL verification. | | ||
| tcp.tls_server_name | string | optional | | | The server name for the new TLS extension SNI. | | ||
| skywalking.endpoint_addr | string | required | http://127.0.0.1:12900/v3/logs | | the http endpoint of Skywalking. | |
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.
Once you provide a default value it is no longer required.
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.
Got it.
What this PR does / why we need it:
Pre-submission checklist:
his plugin is
error-log-logger
-like, but it sends log data to Apache SkyWalking over http.