We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ac4da9 + b6e9f70 commit 6fd0c69Copy full SHA for 6fd0c69
1 file changed
tests/integrations/langchain/test_langchain.py
@@ -336,11 +336,13 @@ def test_langchain_agent(
336
assert tx["type"] == "transaction"
337
assert tx["contexts"]["trace"]["origin"] == "manual"
338
339
+ invoke_agent_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.invoke_agent")
340
chat_spans = list(x for x in tx["spans"] if x["op"] == "gen_ai.chat")
341
tool_exec_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.execute_tool")
342
343
assert len(chat_spans) == 2
344
345
+ assert invoke_agent_span["origin"] == "auto.ai.langchain"
346
assert chat_spans[0]["origin"] == "auto.ai.langchain"
347
assert chat_spans[1]["origin"] == "auto.ai.langchain"
348
assert tool_exec_span["origin"] == "auto.ai.langchain"
0 commit comments