Skip to content

Fix broken DocFx cross-reference links in span_processor, observability_hosting_manager, output_logging_middleware, and utils#244

Open
Copilot wants to merge 8 commits intomainfrom
copilot/fix-docfx-cross-reference-links
Open

Fix broken DocFx cross-reference links in span_processor, observability_hosting_manager, output_logging_middleware, and utils#244
Copilot wants to merge 8 commits intomainfrom
copilot/fix-docfx-cross-reference-links

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

Short RST cross-references (e.g. :class:\EnrichedReadableSpan`) generate unresolvable ` placeholders in DocFx-generated API docs because the target isn't defined in the same module.

Changes

Replace all short :class:, :meth:, and :data: cross-references with fully-qualified module paths across four files:

File Reference fixed
agentframework/span_processor.py :class:\EnrichedReadableSpan``
observability_hosting_manager.py :meth:\configure`, :class:`ObservabilityHostingManager``
output_logging_middleware.py :class:\OutputScope`, :data:`A365_PARENT_TRACEPARENT_KEY``
utils.py :meth:\OpenTelemetryScope.inject_context_to_headers``

Before:

"""Middleware that creates :class:`OutputScope` spans for outgoing messages.

Links to a parent span when :data:`A365_PARENT_TRACEPARENT_KEY` is set in turn_state.
"""

After:

"""Middleware that creates :class:`microsoft_agents_a365.observability.core.spans_scopes.output_scope.OutputScope` spans for outgoing messages.

Links to a parent span when :data:`microsoft_agents_a365.observability.hosting.middleware.output_logging_middleware.A365_PARENT_TRACEPARENT_KEY` is set in turn_state.
"""

Docstring-only changes; no logic modified.

…ty_hosting_manager, output_logging_middleware, and utils docstrings

Agent-Logs-Url: https://github.com/microsoft/Agent365-python/sessions/d6bb5f58-003d-4e19-bdb2-66284d1768a6

Co-authored-by: JimDaly <6353736+JimDaly@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken DocFx cross-reference links in various docstrings Fix broken DocFx cross-reference links in span_processor, observability_hosting_manager, output_logging_middleware, and utils Apr 24, 2026
Copilot AI requested a review from JimDaly April 24, 2026 21:04
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@JimDaly JimDaly marked this pull request as ready for review April 24, 2026 22:30
@JimDaly JimDaly requested a review from a team as a code owner April 24, 2026 22:30
Copilot AI review requested due to automatic review settings April 24, 2026 22:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Python docstrings in the observability core/hosting/extension packages to use fully-qualified Sphinx RST cross-references so DocFx can resolve them instead of emitting unresolved <xref> placeholders.

Changes:

  • Replace short :class:, :meth:, and :data: references with fully-qualified module paths in four modules.
  • Preserve behavior (docstring-only changes); no runtime logic modifications.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
libraries/microsoft-agents-a365-observability-hosting/microsoft_agents_a365/observability/hosting/middleware/output_logging_middleware.py Fully-qualifies OutputScope and A365_PARENT_TRACEPARENT_KEY docstring xrefs for DocFx resolution.
libraries/microsoft-agents-a365-observability-hosting/microsoft_agents_a365/observability/hosting/middleware/observability_hosting_manager.py Fully-qualifies configure and ObservabilityHostingManager docstring xrefs.
libraries/microsoft-agents-a365-observability-extensions-agentframework/microsoft_agents_a365/observability/extensions/agentframework/span_processor.py Fully-qualifies EnrichedReadableSpan docstring xref.
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/utils.py Fully-qualifies OpenTelemetryScope.inject_context_to_headers docstring xref.

ajmfehr
ajmfehr previously approved these changes Apr 28, 2026
@JimDaly JimDaly enabled auto-merge (squash) April 29, 2026 17:19
sellakumaran
sellakumaran previously approved these changes Apr 29, 2026
Copilot AI review requested due to automatic review settings April 29, 2026 19:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@JimDaly JimDaly dismissed stale reviews from ajmfehr and sellakumaran via 0dce6ab April 29, 2026 21:13
Copilot AI review requested due to automatic review settings April 29, 2026 21:13
JimDaly and others added 2 commits April 29, 2026 14:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix broken DocFx cross-reference links in span_processor, observability_hosting_manager, output_logging_middleware, and utils docstrings

5 participants