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
Feature: collect and report logs #147
Conversation
- Fix minor issue in configs
Test it manually and it generally looks good to me. You should add test for it after this PR merged. |
I think it's not mandatory, though it would be a bonus if @Superskyyy can adopt skywalking-infra-e2e in the new test. |
This is recommended, that mechanism makes sure we wouldn't break it in the future. |
@@ -32,3 +32,10 @@ Environment Variable | Description | Default | |||
| `SW_CELERY_PARAMETERS_LENGTH`| The maximum length of `celery` functions parameters, longer than this will be truncated, 0 turns off | `512` | | |||
| `SW_AGENT_PROFILE_ACTIVE` | If `True`, Python agent will enable profile when user create a new profile task. Otherwise disable profile. | `False` | | |||
| `SW_PROFILE_TASK_QUERY_INTERVAL` | The number of seconds between two profile task query. | `20` | | |||
| `SW_AGENT_LOG_REPORTER_ACTIVE` | If `True`, Python agent will report collected logs to the OAP or Satellite. Otherwise, it disables the feature. | `False` | |
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.
Besides this doc change, let's add a specific doc to show users how to use it.
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.
@wu-sheng I just added a detailed guide, please see if that is sufficient.
And after this change, a new section should be added into main repo's doc, https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/log-analyzer.md#java-agents-toolkits, which should link to this required doc #147 (comment) |
Will do that next :) |
Signed-off-by: YihaoChen <Superskyyy@outlook.com>
Signed-off-by: YihaoChen <Superskyyy@outlook.com>
Signed-off-by: YihaoChen <Superskyyy@outlook.com>
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, Thank you for your contributing!
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.
@Superskyyy nice work!! Thanks 🙇🏻
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.
Thanks. Please update the main repo doc linking to this doc.
Certainly. |
Closes apache/skywalking#7118 |
So this is grpc only? No http or kafka protocol? |
For this PR, yes, we need iterations to support http and kafka protocol |
This functionality should be pushed into the protocols themselves, which would also remove the separate channel for grpc as the author said. |
@Humbertzhang will be working to remove the separate channel for logs by reusing the same gRPC protocol / channel. |
This is a OSPP Summer 2021 project supervised by @Humbertzhang | apache/skywalking#7118
The feature implements optional log reporter functionalities in alignment with the SkyWalking Java agent.
.gitignore
during license checks.