Skip to content

Add span links#229

Merged
nikhilNava merged 5 commits intomainfrom
nikhilc/supportSpanLinks
Apr 2, 2026
Merged

Add span links#229
nikhilNava merged 5 commits intomainfrom
nikhilc/supportSpanLinks

Conversation

@nikhilNava
Copy link
Copy Markdown
Contributor

Task
Support span links on spans to support async services

@nikhilNava nikhilNava requested a review from a team as a code owner April 1, 2026 16:28
Copilot AI review requested due to automatic review settings April 1, 2026 16:28
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

Adds support for OpenTelemetry span links via SpanDetails, enabling causal relationships across async/distributed operations.

Changes:

  • Extend SpanDetails to carry optional SpanLinks.
  • Pass span links into ActivitySource.CreateActivity(...) within OpenTelemetryScope.
  • Add/expand tests to validate span links are recorded/forwarded across scope types.

Reviewed changes

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

Show a summary per file
File Description
src/Tests/Microsoft.Agents.A365.Observability.Runtime.Tests/Tracing/Scopes/SpanLinksTest.cs Adds new tests validating span links are emitted on activities for multiple scopes.
src/Observability/Runtime/Tracing/Scopes/OpenTelemetryScope.cs Plumbs SpanDetails.SpanLinks into ActivitySource.CreateActivity so activities record links.
src/Observability/Runtime/Tracing/Contracts/SpanDetails.cs Adds SpanLinks to the span configuration contract.
src/Observability/Runtime/Tracing/Scopes/InvokeAgentScope.cs Preserves span links when wrapping/overriding span details (span kind).
src/Observability/Runtime/Tracing/Scopes/ExecuteToolScope.cs Preserves span links when wrapping/overriding span details (span kind).
src/Observability/Runtime/Tracing/Scopes/InferenceScope.cs Updates docstring to reflect span links support.
src/Observability/Runtime/Tracing/Scopes/OutputScope.cs Updates docstring to reflect span links support.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 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.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 178228a.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@nikhilNava nikhilNava enabled auto-merge (squash) April 1, 2026 19:45
@nikhilNava nikhilNava changed the title add span links Add span links Apr 1, 2026
juliomenendez
juliomenendez previously approved these changes Apr 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 21:12
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 7 out of 7 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 1, 2026 21:18
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 7 out of 7 changed files in this pull request and generated 1 comment.

@fpfp100
Copy link
Copy Markdown

fpfp100 commented Apr 2, 2026

suggest adding sample data.

@nikhilNava nikhilNava merged commit ec2e9b6 into main Apr 2, 2026
7 checks passed
@nikhilNava nikhilNava deleted the nikhilc/supportSpanLinks branch April 2, 2026 05:13
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.

5 participants