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 ?
馃挕聽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)
