We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e39d36 + 6fd0c69 commit 81b3178Copy full SHA for 81b3178
1 file changed
tests/integrations/langchain/test_langchain.py
@@ -448,11 +448,13 @@ def test_langchain_openai_tools_agent(
448
assert tx["type"] == "transaction"
449
assert tx["contexts"]["trace"]["origin"] == "manual"
450
451
+ invoke_agent_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.invoke_agent")
452
chat_spans = list(x for x in tx["spans"] if x["op"] == "gen_ai.chat")
453
tool_exec_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.execute_tool")
454
455
assert len(chat_spans) == 2
456
457
+ assert invoke_agent_span["origin"] == "auto.ai.langchain"
458
assert chat_spans[0]["origin"] == "auto.ai.langchain"
459
assert chat_spans[1]["origin"] == "auto.ai.langchain"
460
assert tool_exec_span["origin"] == "auto.ai.langchain"
0 commit comments