I am using adk deploy to deploy my agent to agent engine and its not picking the traces. The documentation states to use remote agent https://arize.com/docs/phoenix/integrations/python/google-adk/google-adk-tracing#agent-engine-deployment Is there no way to get it working via adk deploy command ?
No, the official documentation does not describe support for Phoenix tracing via the adk deploy command. Tracing for remote Agent Engine deployments must be configured by including the instrumentation setup (e.g., Phoenix/OpenInference) inside the agent module itself, as shown in the docs. The adk deploy command alone does not automatically enable or configure tracing for Phoenix鈥攎anual setup in your agent code is required for traces to be collected and sent to Phoenix when running on Agent Engine聽Arize Phoenix Google ADK Tracing聽Arize Phoenix Google ADK Tracing (example).Would you like a step-by-step example of how to set up tracing in your agent module for remote deployment?Sources: - Arize Phoenix Google ADK Tracing - Arize Phoenix Google ADK Tracing (example)
馃挕聽Hint: Mention RunLLM in the thread for followups.
Will adk deploy be supported in future?
have you tried adding the instrumentor in your __init__.py file? For example:
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from openinference.instrumentation.google_adk import GoogleADKInstrumentor
from . import agent
endpoint = "http://YOUR_ENDPOINT/v1/traces"
tracer_provider = TracerProvider()
tracer_provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(endpoint)))
GoogleADKInstrumentor().instrument(tracer_provider=tracer_provider)
