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

[receiver/hostmetrics] Change method to get parent Pid in function parentPid #22920

Merged

Conversation

JadziaMataj
Copy link
Contributor

Description:
Change method to get parent Pid in function parentPid.
Fixing the bug with reading parent pid for Windows processes.

Link to tracking Issue: 14679

Testing: Testing was performed manually on Windows 10. The error "error reading parent pid for process" has not occurred in the logs.

Documentation: is not needed

@JadziaMataj JadziaMataj requested a review from a team May 29, 2023 21:36
@JadziaMataj JadziaMataj requested a review from dmitryax as a code owner May 29, 2023 21:36
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 29, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

One nit. Otherwise LGTM. Thanks @JadziaMataj

@dmitryax dmitryax added the ready to merge Code review completed; ready to merge by maintainers label Jun 2, 2023
@TylerHelmuth
Copy link
Member

@JadziaMataj please add a changelog entry for this bug fix

@TylerHelmuth TylerHelmuth removed the ready to merge Code review completed; ready to merge by maintainers label Jun 2, 2023
@JadziaMataj
Copy link
Contributor Author

@JadziaMataj please add a changelog entry for this bug fix

@TylerHelmuth sorry for delay. Changelog is added.

@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Jun 6, 2023
@TylerHelmuth TylerHelmuth merged commit b5c0377 into open-telemetry:main Jun 7, 2023
@github-actions github-actions bot added this to the next release milestone Jun 7, 2023
Caleb-Hurshman pushed a commit to observIQ/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2023
…rentPid (open-telemetry#22920)

* change method to get parent Pid in function parentPid

* refactor - remove if

* fix after review - remove assignment

* fix tests

* add chlog file

* update chlog file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/hostmetrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants