google-agents-cli-observability
O que ela faz
Esta skill explica como acompanhar um agente do Google ADK implantado, incluindo rastreamento e registro dos prompts. É para desenvolvedores que rodam agentes em produção e precisam depurar o tráfego real.
Quando usar
- ✓Quando você quer configurar rastreamento ou registros para um agente implantado.
- ✓Quando você precisa descobrir por que um agente em produção se comportou de determinada forma.
- ✓Quando você quer enviar análises do agente para o BigQuery ou para uma ferramenta de monitoramento de terceiros.
Link da skill
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-observability/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Configure o rastreamento e o registro dos prompts do meu agente ADK implantado para eu ver o que ele responde em produção.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill explica quais recursos de monitoramento funcionam logo de início e quais precisam de recursos extras na nuvem. Ela percorre os passos de configuração e os comandos para verificar se os registros e rastreamentos estão chegando.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Observability Guide
Cloud Trace works out of the box — no infrastructure needed. Prompt-response logging and BigQuery Agent Analytics require Terraform-provisioned infrastructure (service account, GCS bucket, BigQuery dataset). Run
agents-cli infra single-project --apply --project PROJECT_IDto provision these resources. Go projects get the BigQuery telemetry stack too; the GCS completion upload behind prompt-response logging and the BigQuery Agent Analytics plugin are Python only. Seereferences/cloud-trace-and-logging.mdfor details, env vars, and verification commands. If your project isn't scaffolded yet, see/google-agents-cli-scaffoldfirst.
Deployment order
| Do you want Terraform-managed observability? | Action |
|---|---|
| No | Run agents-cli deploy directly (works for all targets). |
| Yes | Run agents-cli infra single-project --apply first, then agents-cli deploy. |
If you already ran agents-cli deploy imperatively:
Do not apply Terraform afterward. For Agent Runtime in Gemini platform, Terraform owns the whole engine (service account, deployment spec, env vars), so a later apply can't be reconciled without taking over the resource.
Either delete the deployment and start over, or keep the SDK-deployed instance — skip infra single-project and set the observability env vars by re-running agents-cli deploy --update-env-vars "KEY=VALUE,..."; deploy matches the existing Reasoning Engine by display name and updates it in place, preserving env vars set outside the deploy. You must also grant its service account the telemetry IAM roles the Terraform module would otherwise provision: roles/storage.admin (write completions to the logs bucket), roles/logging.logWriter, roles/cloudtrace.agent, plus roles/bigquery.dataOwner + roles/bigquery.jobUser when scaffolded with --bq-analytics. The full set lives in deployment/terraform/single-project/iam.tf (from app_sa_roles) and telemetry.tf. Terraform-managed env vars aren't available in this mode.
Reference Files
| File | Contents |
|---|---|
references/cloud-trace-and-logging.md |
Scaffolded project details — Terraform-provisioned resources, environment variables, verification commands, enabling/disabling locally |
references/bigquery-agent-analytics.md |
BQ Agent Analytics plugin — enabling, key features, GCS offloading, tool provenance |
references/adk-docs.md |
ADK: adk.dev pages to fetch for detail beyond this skill |
references/feedback-mechanism.md |
Adding a user-feedback endpoint — request model, structured logging, log sink → BigQuery |
Observability Tiers
Choose the right level of observability based on your needs:
| Tier | What It Does | Scope | Default State | Best For |
|---|---|---|---|---|
| Cloud Trace | Distributed tracing — execution flow, latency, errors via OpenTelemetry spans | All templates, all environments | Always enabled | Debugging latency, understanding agent execution flow |
| Prompt-Response Logging | GenAI interactions exported to GCS, BigQuery, and Cloud Logging | Scaffolded ADK Python and Claude projects | Disabled locally, enabled when deployed | Auditing LLM interactions, compliance |
| BigQuery Agent Analytics | Structured agent events (LLM calls, tool use, outcomes) to BigQuery | ADK Python agents with the plugin enabled; Claude template agents | Opt-in (--bq-analytics at scaffold time) |
Conversational analytics, custom dashboards, LLM-as-judge evals |
| Third-Party Integrations | External observability platforms (AgentOps, Phoenix, MLflow, etc.) | Any OpenTelemetry-instrumented agent | Opt-in, per-provider setup | Team collaboration, specialized visualization, prompt management |
Ask the user which tier(s) they need — they can be combined. Cloud Trace is always on; the others are additive.
Cloud Trace
Scaffolded agents use OpenTelemetry to emit distributed traces. Every agent invocation produces spans that track the full execution flow.
Span Hierarchy
ADK projects. These are ADK's span names; other frameworks emit their own (
generate_contentcomes from the shared google-genai instrumentor either way).
invoke_workflow (top-level run)
└── invoke_agent (one per agent in the chain)
├── call_llm (model request)
│ └── generate_content (underlying GenAI model call)
└── execute_tool (tool execution)
Perguntas frequentes
O Cloud Trace precisa de configuração extra?
A descrição diz que o Cloud Trace funciona logo de início, sem infraestrutura extra.
O que precisa de recursos gerenciados pelo Terraform?
O registro de prompt e resposta e o BigQuery Agent Analytics precisam de recursos provisionados com o comando de infraestrutura.
E se eu já tiver implantado o agente?
A skill avisa que um terraform apply depois de uma implantação imperativa pode gerar conflitos, e explica as opções seguras.
Detalhes
Descrição original do autor
This skill should be used when the user wants to "set up tracing", "monitor my agent", "configure logging", "add observability", "debug production traffic", or needs guidance on monitoring deployed agents, including ADK (Agent Development Kit) agents. Covers Cloud Trace, prompt-response logging, BigQuery Agent Analytics, third-party integrations (AgentOps, Phoenix, MLflow, etc.), and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment setup (use google-agents-cli-deploy) or API code patterns (use google-agents-cli-adk-code).
repo: google/agents-cli
Popularidade
- Estrelas no GitHub
- 6,3 mil
- Posição no ranking
- #14371
- Licença
- Apache-2.0
- Atualizada em
- 27/10/2026
Comentários
- …
Mais skills deste repositório
google-agents-cli-adk-code
6,3 milAjuda seu agente a escrever código para agentes de IA com o Google ADK, incluindo ferramentas, callbacks, estado e padrões de orquestração.
google-agents-cli-deploy
6,3 milAjuda seu agente a implantar um agente de IA no Google Cloud, cobrindo Agent Runtime, Cloud Run, GKE, segredos, CI/CD e solução de problemas.
google-agents-cli-eval
6,3 milAjuda seu agente a avaliar um agente de IA com conjuntos de teste e pontuação, e depois descobrir por que as respostas falham.
google-agents-cli-publish
6,3 milAjuda seu agente a registrar um agente de IA implantado no Gemini e a gerenciar agentes e servidores MCP registrados no Agent Registry.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.