Add explicit Agent365 baggage bridge - #516
Open
heyitsaamir wants to merge 6 commits into
Open
Conversation
This was referenced Jul 20, 2026
heyitsaamir
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 21, 2026 00:23
c20ab44 to
9dae172
Compare
heyitsaamir
force-pushed
the
heyitsaamir-python-otel-apps
branch
from
July 22, 2026 14:27
b8f9702 to
18a5d99
Compare
heyitsaamir
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 22, 2026 14:27
6858dc9 to
b31aac8
Compare
heyitsaamir
force-pushed
the
heyitsaamir-python-otel-apps
branch
from
July 22, 2026 21:16
18a5d99 to
2dae576
Compare
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
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
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
heyitsaamir
force-pushed
the
heyitsaamir-python-otel-docs
branch
from
July 22, 2026 21:32
d984f8d to
0342e58
Compare
lilyydu
approved these changes
Jul 27, 2026
corinagum
approved these changes
Jul 27, 2026
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.
Adds the explicit Agent365 baggage bridge and documents the app-level Microsoft OTel setup around it.
Why
Agent365 observability should be wired by the app, not hidden inside generic Teams SDK telemetry. This keeps the SDK boundary tidy: Teams.py emits SDK spans/metrics and provides an opt-in Agent365 baggage bridge; app code owns Microsoft OpenTelemetry setup, token auth, exporters, and Agent365 scopes. Almost suspiciously reasonable.
Interesting bits
agent365_baggage(...)andAgent365Baggageas the explicit context-manager bridge.microsoft-opentelemetryor Microsoft Agents SDK dependency in SDK packages.Reviewer tips
Start with the small bridge in Apps diagnostics, then the tests that prove it is opt-in and dependency-free. The README is the contract for how app code combines
agent365_baggage(...)with Microsoft OTel/Agent365 scopes.Testing
Targeted Apps diagnostics/process tests pass locally. CI will rerun for the updated branch.