Skip to content

Remove obsolete system metrics setting - #785

Merged
pmcollins merged 1 commit into
mainfrom
agent/remove-obsolete-system-metrics-setting
Aug 10, 2026
Merged

Remove obsolete system metrics setting#785
pmcollins merged 1 commit into
mainfrom
agent/remove-obsolete-system-metrics-setting

Conversation

@pmcollins

Copy link
Copy Markdown
Contributor

Summary

  • remove the unused SPLUNK_OTEL_SYSTEM_METRICS_ENABLED constant
  • omit the ineffective system-metrics toggle from generated distribution metadata
  • add a regression assertion that the setting is not generated

Why

SPLUNK_OTEL_SYSTEM_METRICS_ENABLED was introduced during the 2.x rewrite but was never read by the runtime. System metrics are enabled through auto-instrumentation and can be disabled with OTEL_PYTHON_DISABLED_INSTRUMENTATIONS=system_metrics.

The orphaned constant was later treated as a supported setting by the metadata generator, causing generated release metadata to document a toggle that has no effect.

Impact

Generated metadata no longer advertises an unsupported system-metrics configuration variable. Runtime behavior is unchanged.

Validation

  • hatch run pytest -q tests/test_generate_metadata.py tests/test_env.py (7 passed)
  • hatch run ruff check src/splunk_otel/env.py tools/generate_metadata.py tests/test_generate_metadata.py
  • git diff --check

@pmcollins
pmcollins marked this pull request as ready for review August 10, 2026 21:50
@pmcollins
pmcollins requested review from a team as code owners August 10, 2026 21:50
@pmcollins
pmcollins merged commit 7b44903 into main Aug 10, 2026
11 checks passed
@pmcollins
pmcollins deleted the agent/remove-obsolete-system-metrics-setting branch August 10, 2026 22:29
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants