We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 260b648 + 4ed8d2e commit 9beb3f4Copy full SHA for 9beb3f4
1 file changed
tests/integrations/langchain/test_langchain.py
@@ -709,11 +709,13 @@ def test_langchain_openai_tools_agent(
709
assert tx["type"] == "transaction"
710
assert tx["contexts"]["trace"]["origin"] == "manual"
711
712
+ invoke_agent_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.invoke_agent")
713
chat_spans = list(x for x in tx["spans"] if x["op"] == "gen_ai.chat")
714
tool_exec_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.execute_tool")
715
716
assert len(chat_spans) == 2
717
718
+ assert invoke_agent_span["origin"] == "auto.ai.langchain"
719
assert chat_spans[0]["origin"] == "auto.ai.langchain"
720
assert chat_spans[1]["origin"] == "auto.ai.langchain"
721
assert tool_exec_span["origin"] == "auto.ai.langchain"
0 commit comments