Skip to content

[Bug]: LangGraph agents in Foundry Hosted agents are not emitting gen_ai.agent.* metadata #225

Description

@shivamMg

Component

Langchain

Description

LangGraph/LangChain agents that are being run inside Microsoft Foundry as Hosted agents are not emitting Agent name, version and id in the right fields.

Instead of emitting them in the fields dictated by OTel GenAI Semconv. Instead of these fields:

gen_ai.agent.name
gen_ai.agent.version
gen_ai.agent.id

The following fields are being set:

microsoft.gen_ai.main_agent.name
microsoft.gen_ai.main_agent.version
microsoft.gen_ai.main_agent.id

Expected Behavior

The following fields are not being set for langgraph agents:

gen_ai.agent.name
gen_ai.agent.version
gen_ai.agent.id

Steps to Reproduce

Try the sample LangGraph agent from: https://github.com/shivamMg/fine-tuning/tree/d49b6e462db7f3795a7eb8984aa8900a03780b42/Demos/AgentTracesToSFT/retail-agent-langgraph

Environment

Microsoft Foundry Hosted agents

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions