[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6990SFDY0JKXYP921BKRJYE":3,"skill-same:01M6990SFDY0JKXYP921BKRJYE":104},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":67,"ownerHtmlUrl":68,"ownerBlogUrl":69,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6990SFDY0JKXYP921BKRJYE","google-agents-cli-observability","Agents CLI 智能体可观测性","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).","当用户想要『设置追踪（tracing）』『监控我的智能体』『配置日志记录』『添加可观测性』『调试生产流量』，或需要有关监控已部署智能体（包括 ADK（Agent Development Kit）智能体）的指导时，应使用本技能。涵盖 Cloud Trace、提示-响应日志（prompt-response logging）、BigQuery Agent Analytics、第三方集成（AgentOps、Phoenix、MLflow 等）和故障排查。属于 agents-cli 技能套件。不用于部署设置（使用 google-agents-cli-deploy）或 API 代码模式（使用 google-agents-cli-adk-code）。","google\u002Fagents-cli","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698ZVGDEBGAXVZGNKKKCRBQ",6349,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD3B3T8FK02S5JVCZA1M","运维监控与告警","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,10,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"cli","google agents cli observability","observability","mlflow","install","apache","monitoring","api","code","code patterns","configure","traffic","uv","kit","up","SET","agent development","agent development kit","adk","2026-11-10 10:12:30",false,"---\nname: google-agents-cli-observability\ndescription: >\n  This skill should be used when the user wants to \"set up tracing\",\n  \"monitor my agent\", \"configure logging\", \"add observability\",\n  \"debug production traffic\", or needs guidance on monitoring deployed\n  agents, including ADK (Agent Development Kit) agents.\n  Covers Cloud Trace, prompt-response logging, BigQuery Agent Analytics,\n  third-party integrations (AgentOps, Phoenix, MLflow, etc.), and troubleshooting.\n  Part of the agents-cli skills suite.\n  Do NOT use for deployment setup (use google-agents-cli-deploy) or\n  API code patterns (use google-agents-cli-adk-code).\nmetadata:\n  author: Google\n  license: Apache-2.0\n  version: 1.14.0\n  requires:\n    bins:\n      - agents-cli\n    install: \"uv tool install google-agents-cli\"\n---\n\n# Observability Guide\n\n> **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_ID` to 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. See `references\u002Fcloud-trace-and-logging.md` for details, env vars, and verification commands. If your project isn't scaffolded yet, see `\u002Fgoogle-agents-cli-scaffold` first.\n\n### Deployment order\n\n| Do you want Terraform-managed observability? | Action |\n|---|---|\n| **No** | Run `agents-cli deploy` directly (works for all targets). |\n| **Yes** | Run `agents-cli infra single-project --apply` first, then `agents-cli deploy`. |\n\n**If you already ran `agents-cli deploy` imperatively:**\nDo 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. \nEither 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\u002Fstorage.admin` (write completions to the logs bucket), `roles\u002Flogging.logWriter`, `roles\u002Fcloudtrace.agent`, plus `roles\u002Fbigquery.dataOwner` + `roles\u002Fbigquery.jobUser` when scaffolded with `--bq-analytics`. The full set lives in `deployment\u002Fterraform\u002Fsingle-project\u002Fiam.tf` (from `app_sa_roles`) and `telemetry.tf`. Terraform-managed env vars aren't available in this mode.\n\n### Reference Files\n\n| File | Contents |\n|------|----------|\n| `references\u002Fcloud-trace-and-logging.md` | Scaffolded project details — Terraform-provisioned resources, environment variables, verification commands, enabling\u002Fdisabling locally |\n| `references\u002Fbigquery-agent-analytics.md` | BQ Agent Analytics plugin — enabling, key features, GCS offloading, tool provenance |\n| `references\u002Fadk-docs.md` | **ADK:** adk.dev pages to fetch for detail beyond this skill |\n| `references\u002Ffeedback-mechanism.md` | Adding a user-feedback endpoint — request model, structured logging, log sink → BigQuery |\n\n---\n\n## Observability Tiers\n\nChoose the right level of observability based on your needs:\n\n| Tier | What It Does | Scope | Default State | Best For |\n|------|-------------|-------|---------------|----------|\n| **Cloud Trace** | Distributed tracing — execution flow, latency, errors via OpenTelemetry spans | All templates, all environments | Always enabled | Debugging latency, understanding agent execution flow |\n| **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 |\n| **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 |\n| **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 |\n\n**Ask the user** which tier(s) they need — they can be combined. Cloud Trace is always on; the others are additive.\n\n---\n\n## Cloud Trace\n\nScaffolded agents use OpenTelemetry to emit distributed traces. Every agent invocation produces spans that track the full execution flow.\n\n### Span Hierarchy\n\n> **ADK projects.** These are ADK's span names; other frameworks emit their own (`generate_content` comes from the shared google-genai instrumentor either way).\n\n```\ninvoke_workflow (top-level run)\n  └── invoke_agent (one per agent in the chain)\n        ├── call_llm (model request)\n        │     └── generate_content (underlying GenAI model call)\n        └── execute_tool (tool execution)\n```\n\n### Setup by Deployment Type\n\n| Deployment | Setup |\n|-----------|-------|\n| **Agent Runtime** | Automatic — exporters wired at startup, gated on `GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY` (set by deploy); exports to Cloud Trace\u002FLogging + the Agent Runtime page in the Google Cloud console |\n| **Cloud Run \u002F GKE (scaffolded)** | Automatic — exporters wired at startup, exports to Cloud Trace\u002FLogging |\n| **Cloud Run \u002F GKE (manual)** | Configure OpenTelemetry exporter in your app |\n| **Local dev** | Works with `agents-cli playground`; traces visible in Cloud Console |\n\nWired at app startup — **ADK Python:** `get_fast_api_app(otel_to_cloud=True)` in `app\u002Ffast_api_app.py`; **ADK Go:** `setupObservability()` in `observability.go`; other templates call their own. `references\u002Fcloud-trace-and-logging.md` has the details.\n\nView traces: **Cloud Console → Trace → Trace explorer**\n\n**ADK:** for detailed setup instructions (Agent Runtime CLI\u002FSDK, Cloud Run, custom deployments), fetch `https:\u002F\u002Fadk.dev\u002Fintegrations\u002Fcloud-trace\u002Findex.md`.\n\n---\n\n## Prompt-Response Logging\n\nCaptures 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\u002FBigQuery, none in traces**:\n\n| Tier | Captures | Controlled by | Default (Terraform deploy) |\n|------|----------|---------------|----------------------------|\n| **GCS\u002FBigQuery completions** | Full prompts\u002Fresponses (the prompt-response logging feature) | `OTEL_INSTRUMENTATION_GENAI_COMPLETION_HOOK=upload` + `LOGS_BUCKET_NAME` | **On** — full content |\n| **Trace spans \u002F Cloud Logging events** | Span\u002Fevent content | `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` (plus `ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS=false`, **ADK Python only**) | **Off** — `NO_CONTENT` |\n\nThe tiers are independent: GCS\u002FBigQuery uploads capture full content whenever their upload vars are set and do **not** honor `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`, which governs the traces\u002Fevents tier only.\n\n**ADK Python** reads it as the experimental-semconv enum:\n\n- `NO_CONTENT` — no content in spans\u002Fevents (scaffolded default)\n- `EVENT_ONLY` — content in Cloud Logging events\n- `SPAN_ONLY` \u002F `SPAN_AND_EVENT` — content in trace spans\n- `true` \u002F `false` — **invalid**; fall back to `NO_CONTENT`\n\n**ADK Go** reads the same variable as a **boolean**: `\"1\"` or `\"true\"` capture content, every other\nvalue — including the enum members above — elides it.\n\nFor the full mechanics (semconv opt-in, declarative Terraform config, env-var table, enabling\u002Fdisabling, verification commands), see `references\u002Fcloud-trace-and-logging.md`. For ADK logging docs (log levels, configuration, debugging), fetch `https:\u002F\u002Fadk.dev\u002Fobservability\u002Flogging\u002Findex.md`.\n\n---\n\n## BigQuery Agent Analytics Plugin\n\n> **ADK projects.** Optional ADK plugin that logs structured agent events to BigQuery. Enable with `--bq-analytics` at scaffold time. See `references\u002Fbigquery-agent-analytics.md` for details.\n\n---\n\n## Third-Party Integrations\n\nMany 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).\n\n| Platform | Key Differentiator | Setup Complexity | Self-Hosted Option |\n|----------|-------------------|-----------------|-------------------|\n| **AgentOps** | Session replays, 2-line setup, replaces native telemetry | Minimal | No (SaaS) |\n| **Arize AX** | Commercial platform, production monitoring, evaluation dashboards | Low | No (SaaS) |\n| **Phoenix** | Open-source, custom evaluators, experiment testing | Low | Yes |\n| **MLflow** | OTel traces to MLflow Tracking Server, span tree visualization | Medium (needs SQL backend) | Yes |\n| **Monocle** | 1-call setup, VS Code Gantt chart visualizer | Minimal | Yes (local files) |\n| **Weave** | W&B platform, team collaboration, timeline views | Low | No (SaaS) |\n| **Freeplay** | Prompt management + evals + observability in one platform | Low | No (SaaS) |\n\n**Ask the user** which platform they prefer — present the trade-offs and let them choose. **ADK:** fetch a platform's setup page at `https:\u002F\u002Fadk.dev\u002Fintegrations\u002F\u003Cslug>\u002Findex.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:\u002F\u002Fadk.dev\u002Fintegrations\u002F` (observability topic). On other frameworks the OpenTelemetry-based platforms still work, but follow the platform's own setup docs.\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| 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`. |\n| 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 |\n| Content in traces\u002Fevents (unwanted) | **ADK Python:** `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT` keeps content out of spans\u002Fevents. **ADK Go:** any value other than `1`\u002F`true` does, so unset it or set `false`. NOTE: GCS\u002FBigQuery completions still capture full content — to stop that, remove `LOGS_BUCKET_NAME`\u002F`OTEL_INSTRUMENTATION_GENAI_COMPLETION_HOOK` (drop the upload block in `service.tf`) |\n| BigQuery Analytics not logging | **ADK Python:** verify the plugin is configured in `app\u002Fagent.py`; **Claude:** check the startup log for a BigQuery Agent Analytics warning. Both: check `BQ_ANALYTICS_DATASET_ID` env var is set |\n| Third-party integration not capturing spans | Check provider-specific env vars (API keys, endpoints); some providers (AgentOps) replace native telemetry |\n| Traces missing tool spans | **ADK:** tool execution spans appear under `execute_tool` (other frameworks use their own span names) — check trace explorer filters |\n| High telemetry costs | Turn content capture off (`NO_CONTENT` in Python, `false` in Go); reduce BigQuery retention; disable unused tiers |\n\n---\n\n## Related Skills\n\n- `\u002Fgoogle-agents-cli-deploy` — Deployment targets, CI\u002FCD pipelines, and production workflows\n- `\u002Fgoogle-agents-cli-workflow` — Development workflow, coding guidelines, and operational rules\n- `\u002Fgoogle-agents-cli-adk-code` — ADK API quick reference for writing agent code, Python and Go\n","# Observability Guide\n\n> **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_ID` to 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. See `references\u002Fcloud-trace-and-logging.md` for details, env vars, and verification commands. If your project isn't scaffolded yet, see `\u002Fgoogle-agents-cli-scaffold` first.\n\n### Deployment order\n\n| Do you want Terraform-managed observability? | Action |\n|---|---|\n| **No** | Run `agents-cli deploy` directly (works for all targets). |\n| **Yes** | Run `agents-cli infra single-project --apply` first, then `agents-cli deploy`. |\n\n**If you already ran `agents-cli deploy` imperatively:**\nDo 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. \nEither 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\u002Fstorage.admin` (write completions to the logs bucket), `roles\u002Flogging.logWriter`, `roles\u002Fcloudtrace.agent`, plus `roles\u002Fbigquery.dataOwner` + `roles\u002Fbigquery.jobUser` when scaffolded with `--bq-analytics`. The full set lives in `deployment\u002Fterraform\u002Fsingle-project\u002Fiam.tf` (from `app_sa_roles`) and `telemetry.tf`. Terraform-managed env vars aren't available in this mode.\n\n### Reference Files\n\n| File | Contents |\n|------|----------|\n| `references\u002Fcloud-trace-and-logging.md` | Scaffolded project details — Terraform-provisioned resources, environment variables, verification commands, enabling\u002Fdisabling locally |\n| `references\u002Fbigquery-agent-analytics.md` | BQ Agent Analytics plugin — enabling, key features, GCS offloading, tool provenance |\n| `references\u002Fadk-docs.md` | **ADK:** adk.dev pages to fetch for detail beyond this skill |\n| `references\u002Ffeedback-mechanism.md` | Adding a user-feedback endpoint — request model, structured logging, log sink → BigQuery |\n\n---\n\n## Observability Tiers\n\nChoose the right level of observability based on your needs:\n\n| Tier | What It Does | Scope | Default State | Best For |\n|------|-------------|-------|---------------|----------|\n| **Cloud Trace** | Distributed tracing — execution flow, latency, errors via OpenTelemetry spans | All templates, all environments | Always enabled | Debugging latency, understanding agent execution flow |\n| **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 |\n| **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 |\n| **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 |\n\n**Ask the user** which tier(s) they need — they can be combined. Cloud Trace is always on; the others are additive.\n\n---\n\n## Cloud Trace\n\nScaffolded agents use OpenTelemetry to emit distributed traces. Every agent invocation produces spans that track the full execution flow.\n\n### Span Hierarchy\n\n> **ADK projects.** These are ADK's span names; other frameworks emit their own (`generate_content` comes from the shared google-genai instrumentor either way).\n\n```\ninvoke_workflow (top-level run)\n  └── invoke_agent (one per agent in the chain)\n        ├── call_llm (model request)\n        │     └── generate_content (underlying GenAI model call)\n        └── execute_tool (tool execution)\n```\n\n### Setup by Deployment Type\n\n| Deployment | Setup |\n|-----------|-------|\n| **Agent Runtime** | Automatic — exporters wired at startup, gated on `GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY` (set by deploy); exports to Cloud Trace\u002FLogging + the Agent Runtime page in the Google Cloud console |\n| **Cloud Run \u002F GKE (scaffolded)** | Automatic — exporters wired at startup, exports to Cloud Trace\u002FLogging |\n| **Cloud Run \u002F GKE (manual)** | Configure OpenTelemetry exporter in your app |\n| **Local dev** | Works with `agents-cli playground`; traces visible in Cloud Console |\n\nWired at app startup — **ADK Python:** `get_fast_api_app(otel_to_cloud=True)` in `app\u002Ffast_api_app.py`; **ADK Go:** `setupObservability()` in `observability.go`; other templates call their own. `references\u002Fcloud-trace-and-logging.md` has the details.\n\nView traces: **Cloud Console → Trace → Trace explorer**\n\n**ADK:** for detailed setup instructions (Agent Runtime CLI\u002FSDK, Cloud Run, custom deployments), fetch `https:\u002F\u002Fadk.dev\u002Fintegrations\u002Fcloud-trace\u002Findex.md`.\n\n---\n\n## Prompt-Response Logging\n\nCaptures 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\u002FBigQuery, none in traces**:\n\n| Tier | Captures | Controlled by | Default (Terraform deploy) |\n|------|----------|---------------|----------------------------|\n| **GCS\u002FBigQuery completions** | Full prompts\u002Fresponses (the prompt-response logging feature) | `OTEL_INSTRUMENTATION_GENAI_COMPLETION_HOOK=upload` + `LOGS_BUCKET_NAME` | **On** — full content |\n| **Trace spans \u002F Cloud Logging events** | Span\u002Fevent content | `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` (plus `ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS=false`, **ADK Python only**) | **Off** — `NO_CONTENT` |\n\nThe tiers are independent: GCS\u002FBigQuery uploads capture full content whenever their upload vars are set and do **not** honor `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`, which governs the traces\u002Fevents tier only.\n\n**ADK Python** reads it as the experimental-semconv enum:\n\n- `NO_CONTENT` — no content in spans\u002Fevents (scaffolded default)\n- `EVENT_ONLY` — content in Cloud Logging events\n- `SPAN_ONLY` \u002F `SPAN_AND_EVENT` — content in trace spans\n- `true` \u002F `false` — **invalid**; fall back to `NO_CONTENT`\n\n**ADK Go** reads the same variable as a **boolean**: `\"1\"` or `\"true\"` capture content, every other\nvalue — including the enum members above — elides it.\n\nFor the full mechanics (semconv opt-in, declarative Terraform config, env-var table, enabling\u002Fdisabling, verification commands), see `references\u002Fcloud-trace-and-logging.md`. For ADK logging docs (log levels, configuration, debugging), fetch `https:\u002F\u002Fadk.dev\u002Fobservability\u002Flogging\u002Findex.md`.\n\n---\n\n## BigQuery Agent Analytics Plugin\n\n> **ADK projects.** Optional ADK plugin that logs structured agent events to BigQuery. Enable with `--bq-analytics` at scaffold time. See `references\u002Fbigquery-agent-analytics.md` for details.\n\n---\n\n## Third-Party Integrations\n\nMany 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).\n\n| Platform | Key Differentiator | Setup Complexity | Self-Hosted Option |\n|----------|-------------------|-----------------|-------------------|\n| **AgentOps** | Session replays, 2-line setup, replaces native telemetry | Minimal | No (SaaS) |\n| **Arize AX** | Commercial platform, production monitoring, evaluation dashboards | Low | No (SaaS) |\n| **Phoenix** | Open-source, custom evaluators, experiment testing | Low | Yes |\n| **MLflow** | OTel traces to MLflow Tracking Server, span tree visualization | Medium (needs SQL backend) | Yes |\n| **Monocle** | 1-call setup, VS Code Gantt chart visualizer | Minimal | Yes (local files) |\n| **Weave** | W&B platform, team collaboration, timeline views | Low | No (SaaS) |\n| **Freeplay** | Prompt management + evals + observability in one platform | Low | No (SaaS) |\n\n**Ask the user** which platform they prefer — present the trade-offs and let them choose. **ADK:** fetch a platform's setup page at `https:\u002F\u002Fadk.dev\u002Fintegrations\u002F\u003Cslug>\u002Findex.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:\u002F\u002Fadk.dev\u002Fintegrations\u002F` (observability topic). On other frameworks the OpenTelemetry-based platforms still work, but follow the platform's own setup docs.\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| 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`. |\n| 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 |\n| Content in traces\u002Fevents (unwanted) | **ADK Python:** `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT` keeps content out of spans\u002Fevents. **ADK Go:** any value other than `1`\u002F`true` does, so unset it or set `false`. NOTE: GCS\u002FBigQuery completions still capture full content — to stop that, remove `LOGS_BUCKET_NAME`\u002F`OTEL_INSTRUMENTATION_GENAI_COMPLETION_HOOK` (drop the upload block in `service.tf`) |\n| BigQuery Analytics not logging | **ADK Python:** verify the plugin is configured in `app\u002Fagent.py`; **Claude:** check the startup log for a BigQuery Agent Analytics warning. Both: check `BQ_ANALYTICS_DATASET_ID` env var is set |\n| Third-party integration not capturing spans | Check provider-specific env vars (API keys, endpoints); some providers (AgentOps) replace native telemetry |\n| Traces missing tool spans | **ADK:** tool execution spans appear under `execute_tool` (other frameworks use their own span names) — check trace explorer filters |\n| High telemetry costs | Turn content capture off (`NO_CONTENT` in Python, `false` in Go); reduce BigQuery retention; disable unused tiers |\n\n---\n\n## Related Skills\n\n- `\u002Fgoogle-agents-cli-deploy` — Deployment targets, CI\u002FCD pipelines, and production workflows\n- `\u002Fgoogle-agents-cli-workflow` — Development workflow, coding guidelines, and operational rules\n- `\u002Fgoogle-agents-cli-adk-code` — ADK API quick reference for writing agent code, Python and Go\n",{"name":5,"metadata":55,"description":61},{"author":13,"license":16,"version":56,"requires":57},"1.14.0",{"bins":58,"install":60},[59],"agents-cli","uv tool install google-agents-cli","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).\n","main","6eedbdc2f44c388cbfc5f305eb83b9924cfefebb","src\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability",731,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli","https:\u002F\u002Fgoogle.github.io\u002Fagents-cli\u002F","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-12 23:04:58",{"source":9,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add google\u002Fagents-cli --skill google-agents-cli-observability",{"tool":78,"command":79},"bunx","bunx skills add google\u002Fagents-cli --skill google-agents-cli-observability",{"tool":81,"command":82},"pnpm","pnpm dlx skills add google\u002Fagents-cli --skill google-agents-cli-observability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002FSKILL.md",true,[86,92,96,100],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fadk-docs.md","REFERENCE","参考文档",445,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002Freferences\u002Fadk-docs.md",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fbigquery-agent-analytics.md",1604,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002Freferences\u002Fbigquery-agent-analytics.md",{"path":97,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fcloud-trace-and-logging.md",8438,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002Freferences\u002Fcloud-trace-and-logging.md",{"path":101,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Ffeedback-mechanism.md",3971,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002Freferences\u002Ffeedback-mechanism.md",[105,129,153,179,202,224],{"skillNo":106,"name":107,"nameZh":108,"description":109,"descriptionZh":110,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":111,"categories":112,"keywords":117,"publishedAt":50},"01M6990ZGJV6CHR6CZK81S58CN","google-agents-cli-workflow","ADK 智能体开发工作流","This skill should be used when the user wants to \"develop an agent\", \"build an agent using ADK\", \"run the agent locally\", \"debug agent code\", \"test an agent\", \"deploy an agent\", \"publish an agent\", \"monitor an agent\", or needs the ADK (Agent Development Kit) development lifecycle and coding guidelines. Entrypoint for building ADK agents. Always active — provides the full workflow (scaffold, build, evaluate, deploy, publish, observe), code preservation rules, model selection guidance, and troubleshooting steps for ADK or any agent development.","当用户想要“开发智能体”“使用 ADK 构建智能体”“在本地运行智能体”“调试智能体代码”“测试智能体”“部署智能体”“发布智能体”“监控智能体”，或需要 ADK（Agent Development Kit，智能体开发工具包）开发生命周期与编码规范时，应使用本技能。它是构建 ADK 智能体的入口。始终处于激活状态——提供完整工作流（搭建脚手架、构建、评估、部署、发布、观测）、代码保留规则、模型选择指南，以及 ADK 或任何智能体开发的故障排查步骤。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-workflow\u002FSKILL.md",[113,114],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":115,"categoryName":116,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[10,118,31,119,49,48,47,120,121,122,123,124,44,43,39,125,126,36,127,128],"google agents cli workflow","workflow","development lifecycle","model","observe","selection","model selection","debug agent","publish","active","run",{"skillNo":130,"name":131,"nameZh":132,"description":133,"descriptionZh":134,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":139,"publishedAt":50},"01M6990XH0S4MNS7YTDAMNAAEW","google-agents-cli-scaffold","agents-cli 智能体项目脚手架","This skill should be used when the user wants to \"create an agent project\", \"start a new ADK project\", \"build me a new agent\", \"add CI\u002FCD to my project\", \"add deployment\", \"enhance my project\", or \"upgrade my project\". Part of the agents-cli skills suite. Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands, template options, deployment targets, and the prototype-first workflow. Do NOT use for writing agent code (ADK projects: use google-agents-cli-adk-code) or deployment operations (use google-agents-cli-deploy).","当用户想要“创建智能体项目”、“启动新的 ADK 项目”、“帮我构建一个新智能体”、“为项目添加 CI\u002FCD”、“添加部署”、“增强我的项目”或“升级我的项目”时，应使用本技能。属于 agents-cli 技能套件。涵盖 `agents-cli scaffold create`、`scaffold enhance` 和 `scaffold upgrade` 命令、模板选项、部署目标以及原型优先（prototype-first）的工作流程。请勿用于编写智能体代码（ADK 项目请使用 google-agents-cli-adk-code）或部署操作（请使用 google-agents-cli-deploy）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-scaffold\u002FSKILL.md",[137,138],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":115,"categoryName":116,"taxonomyType":23,"taxonomyTypeDesc":24},[140,10,31,141,49,142,143,144,145,146,43,147,119,39,148,149,36,150,151,152],"google agents cli scaffold","scaffold","writing","projects","new agent","project","ci","upgrade","create","me","options","template","CI\u002FCD",{"skillNo":154,"name":155,"nameZh":156,"description":157,"descriptionZh":158,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":165,"publishedAt":50},"01M6990VP634A9G6052KQCZNYJ","google-agents-cli-publish","agents-cli 智能体发布与注册","This skill should be used when the user wants to \"publish an agent\", \"publish my ADK agent\", \"register an agent with Gemini\", \"publish to Gemini\" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to \"manage agents in Agent Registry\", \"list\u002Fupdate\u002Fdelete registered agents\", or \"register an MCP server\". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).","当用户想要“发布智能体”、“发布我的 ADK 智能体”、“向 Gemini 注册智能体”、“发布到 Gemini”（原 Gemini Enterprise），或需要了解 agents-cli publish gemini 命令的用法时，应使用本技能。当用户想要“在 Agent Registry 中管理智能体”、“列出\u002F更新\u002F删除已注册智能体”或“注册 MCP 服务器”时也应使用。涵盖 ADK 与 A2A 两种注册模式、编程式与交互式用法、参数（flag）说明、从部署元数据自动检测、Agent Registry 机群管理以及故障排查。属于 agents-cli 技能套件。请勿用于部署（部署请使用 google-agents-cli-deploy）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-publish\u002FSKILL.md",[161,164],{"categoryNo":162,"categoryName":163,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[10,31,166,126,49,167,168,43,169,170,171,172,173,36,174,175,35,176,177,178],"google agents cli publish","MCP","programmatic","auto","mcp server","agent registry","server","delete","command","update","suite","fleet","registry",{"skillNo":180,"name":181,"nameZh":182,"description":183,"descriptionZh":184,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":191,"publishedAt":50},"01M6990PXZ0S6NHYV8PGGVFT6E","google-agents-cli-eval","Agents CLI 智能体评估","This skill should be used when the user wants to \"run an evaluation\", \"evaluate my agent\", \"evaluate my ADK agent\", \"write an eval dataset\", \"analyze eval failures\", \"compare eval results\", \"optimize agent\", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).","当用户想要『运行评估』『评估我的智能体』『评估我的 ADK 智能体』『编写评估数据集』『分析评估失败』『比较评估结果』『优化智能体』，或需要有关 Gemini 平台评估方法论和质量飞轮（Quality Flywheel）的指导时，应使用本技能。涵盖评估指标、数据集模式（schema）、LLM 作为评判者（LLM-as-judge）评分和常见失败原因。适用于任何 agents-cli 项目，无论智能体用何种框架编写。不用于智能体 API 代码模式（ADK：使用 google-agents-cli-adk-code）、部署（使用 google-agents-cli-deploy）或项目脚手架（使用 google-agents-cli-scaffold）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-eval\u002FSKILL.md",[187,188],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":189,"categoryName":190,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BZTWSXAPNKVKA1N0JGMJK2","AI 模型评估与基准测试",[10,31,192,193,49,194,145,195,43,196,40,39,197,38,198,199,200,36,128,201],"google agents cli eval","eval","project scaffolding","scaffolding","dataset","scoring","common","analyze","optimize","write",{"skillNo":203,"name":204,"nameZh":205,"description":206,"descriptionZh":207,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":208,"categories":209,"keywords":212,"publishedAt":50},"01M6990MAHH0X6XCNVB74Q67P6","google-agents-cli-deploy","Agents CLI 智能体部署","This skill should be used when the user wants to \"deploy an agent\", \"deploy my ADK agent\", \"set up CI\u002FCD\", \"configure secrets\", \"troubleshoot a deployment\", or needs guidance on Agent Runtime, Cloud Run, or GKE deployment targets, or binding an agent to an Agent Gateway. Covers deployment workflows, service accounts, rollback, and production infrastructure. Applies to any framework agents-cli deploys (ADK, LangChain, ...). Part of the agents-cli skills suite. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), evaluation (use google-agents-cli-eval), or project scaffolding (use google-agents-cli-scaffold).","当用户想要『部署智能体』『部署我的 ADK 智能体』『设置 CI\u002FCD』『配置密钥（secrets）』『排查部署故障』，或需要有关 Agent Runtime、Cloud Run 或 GKE 部署目标，或将智能体绑定到 Agent Gateway 的指导时，应使用本技能。涵盖部署工作流、服务账号、回滚和生产基础设施。适用于 agents-cli 部署的任何框架（ADK、LangChain 等）。属于 agents-cli 技能套件。不用于智能体 API 代码模式（ADK：使用 google-agents-cli-adk-code）、评估（使用 google-agents-cli-eval）或项目脚手架（使用 google-agents-cli-scaffold）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-deploy\u002FSKILL.md",[210,211],{"categoryNo":162,"categoryName":163,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[10,213,31,214,49,145,146,193,43,215,40,216,128,217,218,219,220,221,222,223],"google agents cli deploy","deploy","workflows","gke","Evaluation","langchain","infrastructure","do","cloud run","for","deployment",{"skillNo":225,"name":226,"nameZh":227,"description":228,"descriptionZh":229,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":230,"categories":231,"keywords":234,"publishedAt":50},"01M6990HY6R7MS0J02P09ZTT89","google-agents-cli-adk-code","ADK 智能体代码编写","This skill should be used when the user wants to \"write agent code\", \"build an agent with ADK\", \"add a tool\", \"create a callback\", \"define an agent\", \"use state management\" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).","当用户想要\"编写智能体代码\"、\"使用 ADK 构建智能体\"、\"添加工具\"、\"创建回调\"、\"定义智能体\"、\"使用状态管理\"，且项目需要 ADK（Agent Development Kit）API 模式与代码示例时，应使用本技能。它提供智能体类型、工具定义、编排模式、回调、状态管理、图工作流 API（graph Workflow API）以及可供学习的参考配方（reference recipes）的快速参考。请勿用于脚手架搭建（请使用 google-agents-cli-scaffold）或部署（请使用 google-agents-cli-deploy）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-adk-code\u002FSKILL.md",[232,233],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":115,"categoryName":116,"taxonomyType":23,"taxonomyTypeDesc":24},[10,49,31,235,39,48,47,236,237,238,145,195,44,43,239,119,38,148,36,201],"google agents cli adk code","quick","quick reference","types","orchestration"]