@@ -5,7 +5,9 @@ SDK for Google ADK that helps to get agents configured in the Agentic Layer quic
55## Features
66
77- Configures OTEL (Tracing, Metrics, Logging)
8- - Converts an ADK agent into an instrumented starlette app with health endpoint
8+ - Converts an ADK agent into an instrumented starlette app
9+ - Configures A2A protocol for inter-agent communication
10+ - Offers parsing methods for sub agents and tools
911- Set log level via env var ` LOGLEVEL ` (default: ` INFO ` )
1012
1113## Usage
@@ -22,11 +24,24 @@ Basic usage example:
2224from agenticlayer.agent_to_a2a import to_a2a
2325from agenticlayer.otel import setup_otel
2426
25- root_agent = ... # Your ADK agent here
26-
2727# Set up OpenTelemetry instrumentation, logging and metrics
2828setup_otel()
2929
30+ # Declare your ADK root agent
31+ root_agent = ...
32+
33+ # Define the URL where the agent will be available from outside
34+ # This can not be determined automatically,
35+ # because the port is only known at runtime,
36+ # when the starlette app is started with Uvicorn.
37+ rpc_url = " http://localhost:8000/"
38+
3039# Create starlette app with A2A protocol
31- app = to_a2a(root_agent)
40+ app = to_a2a(root_agent, rpc_url )
3241```
42+
43+ ## OpenTelemetry Configuration
44+
45+ The SDK automatically configures OpenTelemetry observability when running ` setup_otel() ` . You can customize the OTLP
46+ exporters using standard OpenTelemetry environment variables:
47+ https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
0 commit comments