Skip to content

Commit dfad71d

Browse files
authored
Update deps (#1450)
1 parent 8e90d67 commit dfad71d

File tree

3 files changed

+501
-450
lines changed

3 files changed

+501
-450
lines changed

logfire/_internal/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def patched_run(self: asyncio.events.Handle) -> Any:
3838
if duration >= slow_duration:
3939
try:
4040
duration /= ONE_SECOND_IN_NANOSECONDS
41-
callback: Any = self._callback # type: ignore
41+
callback: Any = self._callback
4242
logfire.warn(
4343
'Async {name} blocked for {duration:.3f} seconds',
4444
duration=duration,

tests/otel_integrations/test_pydantic_ai_mcp.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
@pytest.mark.vcr()
4141
@pytest.mark.anyio
4242
async def test_pydantic_ai_mcp_sampling(exporter: TestExporter):
43-
logfire.instrument_pydantic_ai(version=2)
43+
logfire.instrument_pydantic_ai(version=3)
4444

4545
fastmcp = FastMCP()
4646

@@ -403,14 +403,15 @@ async def client_streams(self):
403403
},
404404
},
405405
{
406-
'name': 'agent run',
406+
'name': 'invoke_agent agent',
407407
'context': {'trace_id': 2, 'span_id': 19, 'is_remote': False},
408408
'parent': {'trace_id': 2, 'span_id': 17, 'is_remote': False},
409409
'start_time': 14000000000,
410410
'end_time': 23000000000,
411411
'attributes': {
412412
'model_name': 'mcp-sampling',
413413
'agent_name': 'agent',
414+
'gen_ai.agent.name': 'agent',
414415
'logfire.msg': 'agent run',
415416
'logfire.span_type': 'span',
416417
'final_result': """\
@@ -527,18 +528,18 @@ async def client_streams(self):
527528
},
528529
},
529530
{
530-
'name': 'running tool',
531+
'name': 'execute_tool joker',
531532
'context': {'trace_id': 2, 'span_id': 13, 'is_remote': False},
532533
'parent': {'trace_id': 2, 'span_id': 11, 'is_remote': False},
533534
'start_time': 11000000000,
534535
'end_time': 26000000000,
535536
'attributes': {
536537
'gen_ai.tool.name': 'joker',
537538
'gen_ai.tool.call.id': 'call_YWeIZ4oGGwEnk9GIb443ZNys',
538-
'tool_arguments': {'theme': 'socks'},
539+
'gen_ai.tool.call.arguments': {'theme': 'socks'},
539540
'logfire.msg': 'running tool: joker',
540541
'logfire.span_type': 'span',
541-
'tool_response': """\
542+
'gen_ai.tool.call.result': """\
542543
Why did the sock break up with the shoe?
543544
544545
Because it found something more "sole-ful!"\
@@ -679,14 +680,15 @@ async def client_streams(self):
679680
},
680681
},
681682
{
682-
'name': 'agent run',
683+
'name': 'invoke_agent agent',
683684
'context': {'trace_id': 2, 'span_id': 3, 'is_remote': False},
684685
'parent': None,
685686
'start_time': 3000000000,
686687
'end_time': 34000000000,
687688
'attributes': {
688689
'model_name': 'gpt-4o',
689690
'agent_name': 'agent',
691+
'gen_ai.agent.name': 'agent',
690692
'logfire.msg': 'agent run',
691693
'logfire.span_type': 'span',
692694
'final_result': """\

0 commit comments

Comments
 (0)