Setting `os.environ["OTEL_PYTHON_TRACER_PROVIDER"] = "otel_sdk_tracer_provider"` is not mentioned as a required step in the official Phoenix documentation for Google ADK Agent Engine tracing. Instead, you must ensure that Phoenix uses an isolated (non-global) tracer provider and that instrumentation is initialized inside the remote agent module, not in the main application code. The recommended approach is to use the `register` function from `phoenix.otel` with `set_global_tracer_provider=False` and instrument with `GoogleADKInstrumentor`, as shown in the docs.
If traces are not being sent, double-check that you are not using the global tracer provider and that all required environment variables (`PHOENIX_COLLECTOR_ENDPOINT`, `PHOENIX_API_KEY`) are set in the agent module. See the full example and troubleshooting steps in the <https://arize.com/docs/phoenix/integrations/python/google-adk/google-adk-tracing#agent-engine-deployment|Phoenix Google ADK Tracing documentation>.
Would you like a step-by-step breakdown of the correct setup?
Sources:
- <https://arize.com/docs/phoenix/integrations/python/google-adk/google-adk-tracing#agent-engine-deployment|Phoenix Google ADK Tracing documentation>