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

collect threads count in opentelemetry-instrumentation-system-metrics #1339

Merged
merged 19 commits into from
Sep 28, 2022

Conversation

yulin-li
Copy link
Contributor

@yulin-li yulin-li commented Sep 18, 2022

Description

Active threads count is a valuable metric and we can expose it in opentelemetry-instrumentation-system-metrics.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tests/test_system_metrics.py::TestSystemMetrics::test_system_thread_count

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@yulin-li yulin-li requested a review from a team September 18, 2022 08:53
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 18, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: yulin-li / name: Yulin Li (6f6028a)

@yulin-li yulin-li closed this Sep 18, 2022
@yulin-li yulin-li reopened this Sep 18, 2022
Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

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

Please add at least one test case

@yulin-li
Copy link
Contributor Author

Please add at least one test case

will do

@yulin-li
Copy link
Contributor Author

Please add at least one test case

ut added, pls help to review

@ocelotl ocelotl merged commit 8e0c8d9 into open-telemetry:main Sep 28, 2022
@yulin-li yulin-li deleted the yulin/threading branch September 28, 2022 12:52
saartochner-lumigo pushed a commit to lumigo-io/opentelemetry-python-contrib that referenced this pull request Nov 13, 2022
…open-telemetry#1339)

* collect threads count in opentelemetry-instrumentation-system-metrics

* update

* avoid devidedByZero exception when sawp memory is 0

* add ut

* change log

* lint

* lint

Co-authored-by: Srikanth Chekuri <[email protected]>
saartochner-lumigo pushed a commit to lumigo-io/opentelemetry-python-contrib that referenced this pull request Nov 13, 2022
…open-telemetry#1339)

* collect threads count in opentelemetry-instrumentation-system-metrics

* update

* avoid devidedByZero exception when sawp memory is 0

* add ut

* change log

* lint

* lint

Co-authored-by: Srikanth Chekuri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants