Repository navigation
Agent365 OpenTelemetry: Agent365 baggage bridge - #516
Merged
Aamir Jawaid (heyitsaamir) merged 14 commits intoJul 31, 2026
Merged
Aamir Jawaid (heyitsaamir) merged 14 commits into
Aamir Jawaid (heyitsaamir) merged 14 commits into
Conversation
This was referenced Jul 20, 2026
Corina (corinagum)
requested changes
Jul 20, 2026
Corina (corinagum)
left a comment
Contributor
There was a problem hiding this comment.
Same feedback as TS
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 21, 2026 00:23
c20ab44 to
9dae172
Compare
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 22, 2026 14:27
6858dc9 to
b31aac8
Compare
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 22, 2026 21:16
b31aac8 to
d984f8d
Compare
Base automatically changed from
heyitsaamir-python-otel-apps
to
feature_agent365_support
July 22, 2026 21:32
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 22, 2026 21:32
d984f8d to
0342e58
Compare
Lily Du (lilyydu)
approved these changes
Jul 27, 2026
Corina (corinagum)
approved these changes
Jul 27, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Aamir Jawaid (heyitsaamir)
changed the base branch from
feature_agent365_support
to
heyitsaamir-agent365-token-provider
July 30, 2026 15:27
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 30, 2026 15:27
0342e58 to
c8744d4
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 30, 2026 20:48
c8744d4 to
e8794a3
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 30, 2026 22:54
e8794a3 to
77b05b8
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 30, 2026 23:04
77b05b8 to
9285292
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 30, 2026 23:10
9285292 to
a98f560
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 30, 2026 23:58
a98f560 to
eebad6e
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Build the Agent365 baggage bridge on the public token-provider layer. Establish identifier-only inbound baggage before the root turn span, support explicit opt-out and granular personal-data includes, and expose reusable proactive scopes without configuring exporters.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Aamir Jawaid (heyitsaamir)
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 31, 2026 00:03
eebad6e to
3aa5731
Compare
Base automatically changed from
heyitsaamir-agent365-token-provider
to
feature_agent365_support
July 31, 2026 03:58
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0
Aamir Jawaid (heyitsaamir)
merged commit Jul 31, 2026
3781421
into
feature_agent365_support
5 checks passed
Merged
Aamir Jawaid (heyitsaamir)
added a commit
that referenced
this pull request
Aug 3, 2026
This is the Python feature branch for Agent 365 and ACF support in 2.1. It brings the stacked identity, lifecycle, proactive messaging, and observability work together as one integration point. ## Included commits - [`24b0ffa`](24b0ffa) Start Agent 365 support branch - [`ecd2654`](ecd2654) Add Agent 365 token support (#457) - [`02c2091`](02c2091) Support Entra inbound Agent ID tokens (#462) - [`6198553`](6198553) Add agentic auth provider infrastructure (#485) - [`2f8b767`](2f8b767) Add AgenticIdentity API surface (#478) - [`5ce920a`](5ce920a) Remove ActivitySender send abstraction (#479) - [`b65a997`](b65a997) Add app-level agentic send helpers (#480) - [`3b441b8`](3b441b8) Default agentic app blueprint ID to app client ID - [`11a9bb8`](11a9bb8) Add Agent 365 agentLifecycle event support (#492) - [`b5b1d44`](b5b1d44) Fix Agent365 base branch deprecation errors - [`36e7c27`](36e7c27) Simplify API client scoping (#505) - [`b620848`](b620848) Add OpenTelemetry API middleware (#514) - [`fc4cbc0`](fc4cbc0) Add OpenTelemetry app diagnostics (#515) - [`287bee1`](287bee1) Rename Agent 365 identity surface to AgenticUser (#524) - [`af1b76c`](af1b76c) Agent365 OpenTelemetry: SDK token-provider surface (#530) - [`3781421`](3781421) Agent365 OpenTelemetry: Agent365 baggage bridge (#516) - [`c2af463`](c2af463) Use AgenticIdentity as Python Agent 365 SDK scope (#533) --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Copilot-Session: 56462895-549f-4889-82c7-16a7d7232ae3 Copilot-Session: b861cde5-a4a6-4d2b-9ca7-0a4f8ccda4ff Copilot-Session: 8398c990-e5b5-41b6-8d04-0519128726c1 Copilot-Session: 0d367487-e88d-4423-8016-475637d47ed0 Copilot-Session: 69dcf0c6-166e-4c59-8a3f-6c0b0c1d8071 Copilot-Session: 69dcf0c6-166e-4c59-8a3f-6c0b0c1c05d3 Copilot-Session: a43ae3bd-97f9-4dbb-bfd0-ffc3dce0a3b7
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.
Summary
Adds the Agent365 OpenTelemetry baggage bridge on top of the token-provider surface in #530. This is the middle layer of a three-PR stack; the Microsoft OpenTelemetry dependency and runnable example remain in the top PR.
The bridge establishes Agent365 identity context before the SDK's root turn span, so Apps, API, auth, and host-created Agent365 spans share one context. It also provides a reusable scope opener for proactive work, where there is no inbound activity to derive identity from.
Decisions
telemetry={"agent365": False}is set. This matches the TypeScript SDK and keeps the enrichment at the single app-processing chokepoint.user.idremains in the default pseudonymous identifier set for cross-language parity.AgenticUser, matching the current Python SDK'sagentic_app_instance_id,agentic_user_id, and blueprint terminology.Deferred
Exporter authentication, Microsoft OpenTelemetry configuration, reactive/proactive sample wiring, and the resulting lockfile change are isolated in the top example PR.
Validation
The complete stack was validated live through Teams: the fresh Python trace appeared in Aspire with Apps/API/auth/
invoke_agentnesting, and Defender produced Agent365InvokeAgentrows. This isolated layer also passes its focused Apps test suite, Ruff, and Pyright.