Skip to content

fix(a365): default InvokeAgent spans to internal - #241

Open
Nikhil Navakiran (nikhilNava) wants to merge 3 commits into
mainfrom
fix/a365-invoke-agent-internal
Open

Nikhil Navakiran (nikhilNava) wants to merge 3 commits into
mainfrom
fix/a365-invoke-agent-internal

Conversation

@nikhilNava

Copy link
Copy Markdown
Collaborator

Summary

  • default manual InvokeAgent scopes to SpanKind.INTERNAL
  • preserve explicit span-kind overrides
  • update focused tests and release notes

Validation

  • npm run build
  • npm run format
  • npm run lint (warnings only)
  • npm run test:unit

Parity with the non-ETW portion of microsoft/opentelemetry-distro-dotnet#152. ETW logger changes are out of scope.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ccc29b9-bf5d-4725-be3b-c4276b233c4c
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ccc29b9-bf5d-4725-be3b-c4276b233c4c
@nikhilNava

Copy link
Copy Markdown
Collaborator Author

Copilot resolve the merge conflicts in this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation matches the stated scope and upstream behavior with focused test coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Aligns JavaScript InvokeAgent span behavior with the .NET implementation.

Changes:

  • Defaults InvokeAgentScope spans to SpanKind.INTERNAL.
  • Preserves explicit span-kind overrides.
  • Updates focused tests and release notes.
File Description
src/​a365/​scopes/​InvokeAgentScope.ts Changes and documents the default span kind.
test/​internal/​unit/​a365/​scopes.test.ts Verifies the new default and override behavior.
CHANGELOG.md Records the behavior change.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…-internal

# Conflicts:
#	CHANGELOG.md

Co-authored-by: nikhilNava <211831449+nikhilNava@users.noreply.github.com>

Copilot AI commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Copilot resolve the merge conflicts in this pull request

Resolved the merge conflict with main and preserved the InvokeAgent changelog entry alongside the incoming entries. Merge commit: 5bddae9.

This branch has not been deployed

No deployments
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.

4 participants