File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 15
15
os .environ ["GOOGLE_API_KEY" ] = os .getenv ("GEMINI_API_KEY" )
16
16
17
17
# Configure logging if LOGFIRE_TOKEN is set
18
- logfire .configure (send_to_logfire = "if-token-present" )
18
+ logfire .configure (send_to_logfire = "if-token-present" , service_name = "adk-basic-mcp" )
19
19
logfire .instrument_mcp ()
20
20
21
21
Original file line number Diff line number Diff line change 12
12
load_dotenv ()
13
13
14
14
# Configure logging if LOGFIRE_TOKEN is set
15
- logfire .configure (send_to_logfire = "if-token-present" )
15
+ logfire .configure (
16
+ send_to_logfire = "if-token-present" , service_name = "langgraph-basic-mcp"
17
+ )
16
18
logfire .instrument_mcp ()
17
19
18
20
Original file line number Diff line number Diff line change 1
- import os
2
1
import asyncio
3
2
4
3
import logfire
5
- from dotenv import load_dotenv
6
4
from agents import Agent , Runner
7
5
from agents .mcp import MCPServerStdio
6
+ from dotenv import load_dotenv
8
7
9
8
load_dotenv ()
10
9
11
10
# Configure Logfire
12
- logfire .configure (send_to_logfire = "if-token-present" )
11
+ logfire .configure (send_to_logfire = "if-token-present" , service_name = "oai-basic-mcp" )
13
12
logfire .instrument_mcp ()
14
13
logfire .instrument_openai_agents ()
15
14
Original file line number Diff line number Diff line change 9
9
load_dotenv ()
10
10
11
11
# Configure logging to logfire if LOGFIRE_TOKEN is set in environment
12
- logfire .configure (send_to_logfire = "if-token-present" )
12
+ logfire .configure (send_to_logfire = "if-token-present" , service_name = "pydantic-basic-mcp" )
13
13
logfire .instrument_mcp ()
14
14
logfire .instrument_pydantic_ai ()
15
15
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def get_current_time() -> str:
23
23
# Add a dynamic greeting resource
24
24
@mcp .resource ("greeting://{name}" )
25
25
def get_greeting (name : str ) -> str :
26
- """Get a personalized greeting"""
26
+ """Get a personalised greeting"""
27
27
return f"Hello, { name } !"
28
28
29
29
You can’t perform that action at this time.
0 commit comments