Skip to content

Enable OneSettings config manager in azure-monitor-opentelemetry distro - #48475

Draft
Leighton Chen (lzchen) wants to merge 2 commits into
mainfrom
distro-enable-config-manager
Draft

Enable OneSettings config manager in azure-monitor-opentelemetry distro#48475
Leighton Chen (lzchen) wants to merge 2 commits into
mainfrom
distro-enable-config-manager

Conversation

@lzchen

Copy link
Copy Markdown
Member

Description

Enables the OneSettings control plane (config manager) in the azure-monitor-opentelemetry distro, as a follow-up to enabling it in the exporter (#48429).

Changes

  • Bump exporter minimum dependency to 1.0.0b56 (the version that enabled the config manager in the exporter).
  • Contribute distro profile fields to OneSettings during configure_azure_monitor: the distro calls config_manager.initialize(component="dst", version=<distro version>) before any exporter is created. Because _ConfigurationProfile.fill() is first-wins per field, the distro sets component="dst" and the distro version, while the exporters created afterward still supply ikey/region/os/rp/attach without overriding these already-set fields.
  • Guarded by the get_configuration_manager() None-check, so the call is skipped when the control plane is disabled via env var (consistent with the exporter).

Tests

  • Added test_configure_azure_monitor_initializes_config_manager (asserts initialize(component="dst", version=VERSION)) and test_configure_azure_monitor_config_manager_disabled (None path).
  • Added a setUp-level patch of get_configuration_manager so no distro configure test starts the real OneSettings worker thread.

All 27 test_configure.py tests pass; black clean.

Leighton Chen (lzchen) and others added 2 commits August 6, 2026 12:02
Bump azure-monitor-opentelemetry-exporter minimum dependency to 1.0.0b56 and
contribute distro profile fields (component=dst, distro version) to the
OneSettings control plane during configure_azure_monitor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b13aa0ee-c777-4719-a18e-21985cf46358
Prevent configure_azure_monitor tests from starting the real OneSettings
worker thread by patching get_configuration_manager for every test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b13aa0ee-c777-4719-a18e-21985cf46358
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added the Monitor - Distro Monitor OpenTelemetry Distro label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Distro Monitor OpenTelemetry Distro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant