Skip to content
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

[extension/sumologicextension] Replace go-ps with gopsutil #36358

Closed
wants to merge 3 commits into from

Conversation

echlebek
Copy link

Description

go-ps is no longer maintained.

Link to tracking issue

Fixes SumoLogic/sumologic-otel-collector#1575

However, I'm unaware of an equivalent issue in this repository. I can add one if required.

Testing

Tests pass, I don't think this change introduces much risk.

Context

There was previously another PR that was abandoned: #33403

go-ps is no longer maintained.

Signed-off-by: Eric Chlebek <[email protected]>
@echlebek
Copy link
Author

It's unclear to me whether this change necessitates a changelog entry, I suspect it does not as no exported APIs have changed. Please let me know if I should include one.

@@ -711,16 +711,20 @@ var sumoAppProcesses = map[string]string{
"kafka-server-start.sh": "kafka", // Need to test this, most common shell wrapper.
}

func filteredProcessList() ([]string, error) {
func filteredProcessList(ctx context.Context) ([]string, error) {
Copy link
Contributor

@chan-tim-sumo chan-tim-sumo Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason why context was added here? because what this function basically do is loop through the the map above this ^^

only asking cause i'm working on the extension that have this change included (removing go-ps and using gopsutil) 😆

#35622

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just to allow context values to be propagated to ExeWithContext, which calls other functions that can make use of those values further down the call stack. At the moment, those values are not being passed, however.

@echlebek
Copy link
Author

Looks like the extension tests have failed. Locally, there were no failures, but I didn't test with any build tags. Will investigate and move this PR to draft status.

@echlebek echlebek marked this pull request as draft November 19, 2024 01:31
Copy link
Contributor

github-actions bot commented Dec 3, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 3, 2024
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unmaintained Library In Use, Another Option Suggestion
3 participants