Repository navigation
Python: support enable_message_events parameter in enable_instrumentation (#8412) - #8452
Closed
Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
Conversation
…tion (microsoft#8412) Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
Manohar Paturi (ManoharPaturi)
deployed
to
github-app-auth
September 17, 2026 09:31 — with
GitHub Actions
Active
Manohar Paturi (ManoharPaturi)
deployed
to
github-app-auth
September 17, 2026 09:31 — with
GitHub Actions
Active
Manohar Paturi (ManoharPaturi)
deployed
to
github-app-auth
September 17, 2026 09:31 — with
GitHub Actions
Active
Manohar Paturi (ManoharPaturi)
deployed
to
github-app-auth
September 17, 2026 09:31 — with
GitHub Actions
Active
Member
|
Closing, this is a duplicate of #8451 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
enable_instrumentation()inagent_framework.observabilityallowed configuringenable_sensitive_dataandforce, but did not acceptenable_message_events. When using the Microsoft OpenTelemetry Distro (configure_azure_monitor), callers need to configure message event emission without mutating internal settings or relying solely on environment variables.As described in [Feature]: Support enable_message_events parameter in enable_instrumentation() to allow Microsoft OTel Distro configuration #8412,
configure_azure_monitorin the Microsoft OTel Distro has its own message event collection and can cause duplicate message events unlessenable_message_events=Falsecan be explicitly configured.Programmatic configuration of message event emission in
enable_instrumentation()alongside existingenable_sensitive_data.Closes [Feature]: Support enable_message_events parameter in enable_instrumentation() to allow Microsoft OTel Distro configuration #8412.
Description & Review Guide
enable_message_events: bool | None = Nonekeyword argument toenable_instrumentation().enable_message_events is not None, setsOBSERVABILITY_SETTINGS.enable_message_events = enable_message_events.ENABLE_MESSAGE_EVENTSfrom environment (defaulting to True) to handle environment changes after import (e.g.load_dotenv()), aligning withenable_sensitive_data.test_observability.py.enable_message_eventsalongsideenable_sensitive_datawithout breaking changes.enable_sensitive_data.Related Issue
Closes #8412
Contribution Checklist