Skip to content

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

Closed
echlebek wants to merge 3 commits into
open-telemetry:mainfrom
echlebek:main
Closed

[extension/sumologicextension] Replace go-ps with gopsutil#36358
echlebek wants to merge 3 commits into
open-telemetry:mainfrom
echlebek:main

Conversation

@echlebek
Copy link
Copy Markdown
Contributor

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 <echlebek@gmail.com>
@echlebek
Copy link
Copy Markdown
Contributor 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.

}

func filteredProcessList() ([]string, error) {
func filteredProcessList(ctx context.Context) ([]string, error) {
Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
@github-actions
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown
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