google-agents-cli-observability

Configure tracing, logging, and analytics for deployed ADK agents on Google Cloud.

Updated Jun 27, 2026
One-click install
npx skills add https://github.com/God-Gamer-Manyu/Google_Agentic_Engineering --skill google-agents-cli-observability-god-gamer-manyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-agents-cli-observability
Source: https://github.com/God-Gamer-Manyu/Google_Agentic_Engineering/tree/main/.agents/skills/google-agents-cli-observability
Command: npx skills add https://github.com/God-Gamer-Manyu/Google_Agentic_Engineering --skill google-agents-cli-observability-god-gamer-manyu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Deployed ADK agents are hard to debug and audit without visibility into LLM calls, tool executions, and prompt-response content. This Skill guides you through enabling Cloud Trace, prompt-response logging, BigQuery Agent Analytics, and third-party observability platforms so you can monitor production agent traffic. ## Core Features & Use Cases - Cloud Trace Setup: Explains the OpenTelemetry span hierarchy (invocation, agent_run, call_llm, execute_tool) and per-deployment configuration for Agent Runtime, Cloud Run, GKE, and local development. - Prompt-Response Logging: Covers Terraform-provisioned GCS buckets, BigQuery log sinks, privacy modes via OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT, and verification commands. - BigQuery Agent Analytics & Third-Party Integrations: Details the opt-in BQ analytics plugin and compares AgentOps, Phoenix, MLflow, Weave, and other platforms with setup trade-offs. - Use Case: After deploying an ADK agent to Agent Runtime, use this Skill to provision telemetry infrastructure with agents-cli infra single-project, verify traces in Cloud Console, and troubleshoot missing prompt-response data. ## Quick Start Set up Cloud Trace and prompt-response logging for my deployed ADK agent and show me how to verify telemetry data is flowing.

Frequently Asked Questions about google-agents-cli-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up tracing for my ADK agent?

Cloud Trace works out of the box for ADK agents via OpenTelemetry. Agent Runtime exports traces automatically, while scaffolded Cloud Run and GKE projects configure exporters through setup_telemetry(). View traces in Cloud Console under Trace explorer.

How do I enable prompt-response logging for ADK agents?

Set LOGS_BUCKET_NAME and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT environment variables. Deployed scaffolded projects get these from Terraform; locally, export them before running agents-cli playground. Logs go to GCS as NDJSON and to BigQuery via log sinks.

What is the difference between Cloud Trace and BigQuery Agent Analytics?

Cloud Trace provides always-on distributed tracing of execution flow, latency, and errors via OpenTelemetry spans. BigQuery Agent Analytics is an opt-in plugin that logs structured agent events to BigQuery for conversational analytics, dashboards, and LLM-as-judge evaluations.

Why are no traces appearing in Cloud Trace for my agent?

Verify setup_telemetry() runs at application startup and the service account has the cloudtrace.agent role. For tool spans, check the trace explorer filters since tool executions appear under execute_tool spans.

Can I use third-party observability tools like Phoenix or MLflow with ADK?

Yes, ADK supports AgentOps, Arize AX, Phoenix, MLflow, Monocle, Weave, and Freeplay through OpenTelemetry or custom instrumentation. Each requires provider-specific environment variables such as API keys and endpoints.

Should I run agents-cli infra before or after deploying to Agent Runtime?

Run agents-cli infra single-project before the first agents-cli deploy for agent_runtime targets. Terraform owns the entire Reasoning Engine resource, so applying it after an SDK-based deploy creates a state mismatch that Terraform cannot reconcile.