File tree Expand file tree Collapse file tree
tests/integrations/pydantic_ai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ async def test_agent_run_async(
9797
9898 assert spans [1 ]["attributes" ]["sentry.op" ] == "gen_ai.invoke_agent"
9999
100- # Find child span types (invoke_agent is the transaction, not a child span)
101100 chat_spans = [
102101 s for s in spans if s ["attributes" ].get ("sentry.op" , "" ) == "gen_ai.chat"
103102 ]
@@ -2155,8 +2154,6 @@ async def test_invoke_agent_with_list_user_prompt(
21552154 sentry_sdk .flush ()
21562155 spans = [item .payload for item in items ]
21572156
2158- # Check that the invoke_agent transaction has messages data
2159- # The invoke_agent is the transaction itself
21602157 if "gen_ai.request.messages" in spans [0 ]["attributes" ]:
21612158 messages_str = spans [0 ]["attributes" ]["gen_ai.request.messages" ]
21622159 assert "First part" in messages_str
You can’t perform that action at this time.
0 commit comments