Skip to content

Conversation

@herin049
Copy link
Contributor

Description

Implements #3954 to add support for the OTEL_PYTHON_SYSTEM_METRICS_EXCLUDED_METRICS environment variable in order to selectively exclude certain metrics from being exported.

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?

Several test scenarios have been added to test the new environment variable configuration option.

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

@herin049 herin049 requested a review from a team as a code owner November 19, 2025 04:14
@herin049 herin049 changed the title add OTEL_PYTHON_SYSTEM_METRICS_EXCLUDED_METRICS environment variable opentelemetry-instrumentation-system-metrics: add OTEL_PYTHON_SYSTEM_METRICS_EXCLUDED_METRICS environment variable Nov 19, 2025
@herin049 herin049 force-pushed the feature/system-metrics-env-var-conf branch from 09bb5bf to 263b603 Compare November 19, 2025 04:17
@sfozz
Copy link

sfozz commented Nov 20, 2025

Can confirm that this worked as expected.

@herin049 herin049 force-pushed the feature/system-metrics-env-var-conf branch from 8b16f1e to cbf9d2b Compare December 5, 2025 15:00
@xrmx xrmx moved this from Ready for review to Approved PRs in @xrmx's Python PR digest Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved PRs

Development

Successfully merging this pull request may close these issues.

3 participants