Skip to content

adding trace support for external agent creation#48119

Open
M-Hietala wants to merge 1 commit into
mainfrom
m-hietala/add_trace_support_for_external_agent_creation
Open

adding trace support for external agent creation#48119
M-Hietala wants to merge 1 commit into
mainfrom
m-hietala/add_trace_support_for_external_agent_creation

Conversation

@M-Hietala

Copy link
Copy Markdown
Member

adding trace support for external agent creation

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Pull request overview

Adds telemetry classification for external agent creation.

Changes:

  • Adds the external agent type and detection.
  • Updates hosted-agent field extraction.
  • Adds recorded synchronous telemetry tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
telemetry/_utils.py Defines the external agent type.
telemetry/_ai_project_instrumentor.py Classifies external agents and updates hosted metadata extraction.
test_ai_agents_instrumentor.py Tests external-agent creation spans.
assets.json Updates recorded test assets.

Comment on lines +948 to +949
elif kind == "external" or definition.get("otel_agent_id") is not None:
agent_type = AGENT_TYPE_EXTERNAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants