google-agents-cli-observability
Skill6.1k starsChanged 3 months agoApache-2.0View on GitHub
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).
Trending
Less talk lately.about the whole repository
Who's talking about google/agents-cli
- @jeanphi-baconnais.gitlab.io“⛅ Deploying an agent on Agent Runtime is very easy with agents-cli github.com/google/agent... This raises …”Bluesky · Jun 25, 2026 · 3 likes
- @epicvibecoder.bsky.social“google turns your coding assistant into an ai agent expert. agents cli is google's cli and skills for …”Bluesky · Jul 1, 2026 · 2 likes
- A Hacker News story“Google: CLI and skills for building agents on Gemini Enterprise Agent Platform”Hacker News · Apr 23, 2026 · 2 points
- @pythonhub.dev“google / agents-cli The CLI and skills that turn any coding assistant into an expert at creating, …”Bluesky · Jul 28, 2026 · 1 likes
- sudosubin/agents.nix“agent-plugins.github.google.agents-cli: 1.8.0 → 1.9.0”GitHub · Oct 6, 2026
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub, Bluesky and Hacker News (23 times).
On GitHub · 17
- Oct 6, 2026agent-plugins.github.google.agents-cli: 1.8.0 → 1.9.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-plugins.github.google.agents-cli: init at 1.8.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.google.agents-cli: 1.7.0 → 1.8.0 — sudosubin/agents.nix0 reactions
- Sep 28, 2026google-agents-cli: upstream update — robomotionio/robomotion-skills0 reactions
- Sep 27, 2026agent-skills.github.google.agents-cli: init at 1.7.0 — sudosubin/agents.nix0 reactions
12 more on GitHub
- Jul 10, 2026evals run_inference (local ADK agent): strips multimodal prompt parts (inline_data) before Runner.run_async — googleapis/python-aiplatform0 reactions
- Jul 3, 2026Agent Skills — leowux/blog0 reactions · 1 comment
- Jun 30, 2026📱 SNS 콘텐츠 - 2026-06-30 23:20 KST — leaf468/autothreads0 reactions
- Jun 30, 2026🤖 AI 트렌드 리포트 - 2026-06-30 23:20 KST — leaf468/autothreads0 reactions
- Jun 25, 2026New skill: /google-google-agents-cli-publish (safe risk) — aiskillstore/marketplace0 reactions
- Jun 25, 2026New skill: /google-google-agents-cli-deploy (low risk) — aiskillstore/marketplace0 reactions
- Jun 25, 2026New skill: /google-google-agents-cli-scaffold (safe risk) — aiskillstore/marketplace0 reactions
- Jun 25, 2026New skill: /google-google-agents-cli-eval (low risk) — aiskillstore/marketplace0 reactions
- Jun 25, 2026New skill: /google-google-agents-cli-observability (safe risk) — aiskillstore/marketplace0 reactions
- Jun 22, 2026New skill: /google-google-agents-cli-workflow (safe risk) — aiskillstore/marketplace0 reactions
- Jun 20, 2026New skill: /google-google-agents-cli-adk-code (low risk) — aiskillstore/marketplace0 reactions
- May 21, 2026Setup: Bootstrap KickOut backend with google-agents-cli — ale-sanchez-g/kickout0 reactions
On Bluesky · 5
- Jun 25, 2026⛅ Deploying an agent on Agent Runtime is very easy with agents-cli github.com/google/agent... This raises so many questions about the… — @jeanphi-baconnais.gitlab.io3 likes and reposts
- Jul 1, 2026google turns your coding assistant into an ai agent expert. agents cli is google's cli and skills for creating, evaluating and deploying ai… — @epicvibecoder.bsky.social2 likes and reposts
- Jul 28, 2026google / agents-cli The CLI and skills that turn any coding assistant into an expert at creating, evaluating, and deploying AI agents on… — @pythonhub.dev1 likes and repost
- Jul 6, 2026公式で確認できたのは、7スキルで scaffold/eval/deploy/publish を回せること。これは本当。 ただし前提もある。Python 3.11+、uv、Node.js、認証。公開後の Google Cloud 資源は自分の責任。… — @sara-echosphere.bsky.social0 likes and reposts · 1 reply
- Jun 30, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google / agents-cli ⭐ 3,813 (+433) 🗒 Python The CLI and skills that turn any coding assistant into… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Apr 23, 2026Google: CLI and skills for building agents on Gemini Enterprise Agent Platform2 points
In this repository15 other files it gives its agents.
- extensions/langchain/template/AGENTS.mdAGENTS.md
- agents-cli-langchainSkill
- google-agents-cli-adk-codeSkill
- google-agents-cli-deploySkill
- google-agents-cli-evalSkill
- google-agents-cli-publishSkill
- google-agents-cli-scaffoldSkill
- google-agents-cli-workflowSkill
- google-agents-cli-adk-codeSkill
- google-agents-cli-deploySkill
- google-agents-cli-evalSkill
- google-agents-cli-observabilitySkill
- google-agents-cli-publishSkill
- google-agents-cli-scaffoldSkill
- google-agents-cli-workflowSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Do not apply Terraform afterward.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, 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 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 | 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)Setup by Deployment Type
| Deployment | Setup |
| Agent Runtime | Automatic — exporters wired at startup, gated on GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY (set by deploy); exports to Cloud Trace/Logging + Agent Engine console |
| Cloud Run / GKE (scaffolded) | Automatic — exporters wired at startup, exports to Cloud Trace/Logging |
| Cloud Run / GKE (manual) | Configure OpenTelemetry exporter in your app |
| Local dev | Works with agents-cli playground; traces visible in Cloud Console |
Wired at app startup — ADK Python: get_fast_api_app(otel_to_cloud=True) in app/fast_api_app.py; ADK Go: setupObservability() in observability.go; other templates call their own. references/cloud-trace-and-logging.md has the details.
View traces: Cloud Console → Trace → Trace explorer
ADK: for detailed setup instructions (Agent Runtime CLI/SDK, Cloud Run, custom deployments), fetch https://adk.dev/integrations/cloud-trace/index.md.
Prompt-Response Logging
Captures GenAI interactions and exports to GCS (JSONL) and BigQuery (via log sinks + external tables). Content is governed by two independent tiers; the net Terraform-deploy default is full content in GCS/BigQuery, none in traces:
| Tier | Captures | Controlled by | Default (Terraform deploy) |
| GCS/BigQuery completions | Full prompts/responses (the prompt-response logging feature) | OTEL_INSTRUMENTATION_GENAI_COMPLETION_HOOK=upload + LOGS_BUCKET_NAME | On — full content |
| Trace spans / Cloud Logging events | Span/event content | OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT (plus ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS=false, ADK Python only) | Off — NO_CONTENT |
The tiers are independent: GCS/BigQuery uploads capture full content whenever their upload vars are set and do not honor OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT, which governs the traces/events tier only.
ADK Python reads it as the experimental-semconv enum:
NO_CONTENT— no content in spans/events (scaffolded default)EVENT_ONLY— content in Cloud Logging eventsSPAN_ONLY/SPAN_AND_EVENT— content in trace spanstrue/false— invalid; fall back toNO_CONTENT
ADK Go reads the same variable as a boolean: "1" or "true" capture content, every other
value — including the enum members above — elides it.
For the full mechanics (semconv opt-in, declarative Terraform config, env-var table, enabling/disabling, verification commands), see references/cloud-trace-and-logging.md. For ADK logging docs (log levels, configuration, debugging), fetch https://adk.dev/observability/logging/index.md.
BigQuery Agent Analytics Plugin
ADK projects. Optional ADK plugin that logs structured agent events to BigQuery. Enable with
--bq-analyticsat scaffold time. Seereferences/bigquery-agent-analytics.mdfor details.
Third-Party Integrations
Many third-party observability platforms can ingest agent telemetry (via OpenTelemetry or custom instrumentation). The table below covers common ones; the full list is larger (see the pointer below it).
| Platform | Key Differentiator | Setup Complexity | Self-Hosted Option |
| AgentOps | Session replays, 2-line setup, replaces native telemetry | Minimal | No (SaaS) |
| Arize AX | Commercial platform, production monitoring, evaluation dashboards | Low | No (SaaS) |
| Phoenix | Open-source, custom evaluators, experiment testing | Low | Yes |
| MLflow | OTel traces to MLflow Tracking Server, span tree visualization | Medium (needs SQL backend) | Yes |
| Monocle | 1-call setup, VS Code Gantt chart visualizer | Minimal | Yes (local files) |
| Weave | W&B platform, team collaboration, timeline views | Low | No (SaaS) |
| Freeplay | Prompt management + evals + observability in one platform | Low | No (SaaS) |
Ask the user which platform they prefer — present the trade-offs and let them choose. ADK: fetch a platform's setup page at https://adk.dev/integrations/<slug>/index.md (slugs for the table above: agentops, arize-ax, phoenix, mlflow-tracing, monocle, weave, freeplay); ADK has more observability integrations (Datadog, Galileo, LangWatch, Latitude, Future AGI, Respan, Zespan, …) — browse the complete, current list at https://adk.dev/integrations/ (observability topic). On other frameworks the OpenTelemetry-based platforms still work, but follow the platform's own setup docs.
Troubleshooting
| Issue | Solution |
| No traces in Cloud Trace | Verify telemetry setup runs at startup and the SA has the cloudtrace.agent role. ADK Python: fast_api_app.py uses get_fast_api_app(otel_to_cloud=True); ADK Go: observability.go build the exporter manually. Agent Runtime additionally gates this on GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY. |
| Prompt-response data not appearing | Check LOGS_BUCKET_NAME is set; verify SA has storage.objectCreator on the bucket; check app logs for telemetry setup warnings |
| Content in traces/events (unwanted) | ADK Python: OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT keeps content out of spans/events. ADK Go: any value other than 1/true does, so unset it or set false. NOTE: GCS/BigQuery completions still capture full content — to stop that, remove LOGS_BUCKET_NAME/OTEL_INSTRUMENTATION_GENAI_COMPLETION_HOOK (drop the upload block in service.tf) |
| BigQuery Analytics not logging | ADK Python: verify the plugin is configured in app/agent.py; check BQ_ANALYTICS_DATASET_ID env var is set |
| Third-party integration not capturing spans | Check provider-specific env vars (API keys, endpoints); some providers (AgentOps) replace native telemetry |
| Traces missing tool spans | ADK: tool execution spans appear under execute_tool (other frameworks use their own span names) — check trace explorer filters |
| High telemetry costs | Turn content capture off (NO_CONTENT in Python, false in Go); reduce BigQuery retention; disable unused tiers |
Related Skills
/google-agents-cli-deploy— Deployment targets, CI/CD pipelines, and production workflows/google-agents-cli-workflow— Development workflow, coding guidelines, and operational rules/google-agents-cli-adk-code— ADK API quick reference for writing agent code, Python and Go
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

