We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 072e1c6 commit 743c0e7Copy full SHA for 743c0e7
1 file changed
adk/agenticlayer/agent_to_a2a.py
@@ -4,6 +4,7 @@
4
"""
5
6
import logging
7
+import os
8
9
from a2a.server.apps import A2AStarletteApplication
10
from a2a.server.request_handlers import DefaultRequestHandler
@@ -106,6 +107,8 @@ async def create_runner() -> Runner:
106
107
)
108
109
# Instrument the Starlette app with OpenTelemetry
110
+ ## Set env var to remove health check logging, needs to be set immediately before starlette intstrumentation
111
+ os.environ.setdefault("OTEL_PYTHON_STARLETTE_EXCLUDED_URLS", AGENT_CARD_WELL_KNOWN_PATH)
112
StarletteInstrumentor().instrument_app(starlette_app)
113
114
return starlette_app
0 commit comments