Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cloud-trace-querying

Skill by google

Queries Cloud Trace spans and correlates them with Cloud Logging to diagnose latency and errors across Google Cloud services. Built for engineers investigating slow requests or latency regressions.

  • Score 94
  • 26k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cloud-trace-querying

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/cloud-trace-querying ~/.claude/skills/cloud-trace-querying

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cloud-trace-querying in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The cloud-trace-querying skill lets an AI assistant query Google Cloud Trace. It can search traces by root span, latency threshold or error status, fetch a full trace hierarchy, and fetch a single span. It also pulls application logs correlated with a trace ID and generates Cloud Console deep links.

The skill runs bash scripts that call gcloud and the Cloud Trace and Cloud Logging APIs. It includes reference guides on filter syntax, latency troubleshooting and semantic conventions. Output can be rendered as ASCII span trees or A2UI JSON. It is aimed at engineers investigating slow requests, analyzing trace hierarchies or resolving latency regressions on GCP. It is not meant for non-GCP telemetry.

Written from the project's SKILL.md and checked against it.

What it can do

  • get_trace_projectDetermines the Google Cloud project ID to use when the user has not given one.
  • search_tracesFinds traces by root span, latency threshold or error status using a filter.
  • fetch_entire_traceReturns all spans and status codes or labels within a given trace ID.
  • fetch_related_logsRetrieves application log entries correlated with a trace ID.
  • fetch_trace_spanInspects attributes and metadata of a single span within a trace.
  • generate_linksCreates Cloud Console URLs for browser inspection of traces or correlated logs.

What you need

  • Google Cloud SDK (gcloud) installed
  • Google Cloud account authenticated with gcloud and application default credentials
  • Active billing account on the target project
  • Cloud Trace and Cloud Logging APIs enabled

Try asking

  • Find traces in my-project with root span /v1/booking/book over 1.5s
  • Fetch the full span hierarchy for trace ID abc123 in my-project
  • Show ERROR log entries correlated with trace ID abc123

Good to know

  • The --filter option is required for search_traces, though an empty filter lists traces.
  • fetch_related_logs searches only the _Default log scope, so entries in other log views may not appear.
  • Upstream Cloud Trace or Cloud Logging API errors are reported to the user rather than debugged.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/cloud-trace-querying/SKILL.md, skills/cloud/cloud-trace-querying/scripts/fetch_entire_trace/run.sh, skills/cloud/cloud-trace-querying/scripts/fetch_entire_trace/src/main.py, skills/cloud/cloud-trace-querying/scripts/fetch_entire_trace/test.sh, skills/cloud/cloud-trace-querying/scripts/fetch_entire_trace/tests/main_test.py, skills/cloud/cloud-trace-querying/scripts/fetch_related_logs/run.sh, skills/cloud/cloud-trace-querying/scripts/fetch_related_logs/src/log_fetcher.py, skills/cloud/cloud-trace-querying/scripts/fetch_related_logs/src/main.py, skills/cloud/cloud-trace-querying/scripts/fetch_related_logs/src/observability_scopes.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • assets/formatting/a2ui/single_span/display.a2ui.json1 KB
  • assets/formatting/a2ui/trace_chart/display.a2ui.json1 KB
  • assets/formatting/a2ui/trace_flow/display.a2ui.json767 B
  • assets/formatting/a2ui/traces_heat_map/display.a2ui.json2 KB
Show all 90 files
  • assets/formatting/ascii/single_span/display.txt377 B
  • assets/formatting/ascii/trace_chart/display.txt517 B
  • assets/formatting/ascii/trace_flow/display.txt430 B
  • assets/formatting/ascii/traces_heat_map/display.txt887 B
  • assets/queries/billing_errors/SCENARIO.md1 KB
  • assets/queries/billing_errors/query.txt73 B
  • assets/queries/checkout_latency/SCENARIO.md416 B
  • assets/queries/checkout_latency/query.txt47 B
  • assets/queries/customer_spans/SCENARIO.md307 B
  • assets/queries/customer_spans/query.txt24 B
  • assets/queries/prod_outliers/SCENARIO.md979 B
  • assets/queries/prod_outliers/query.txt51 B
  • assets/queries/slow_db/SCENARIO.md440 B
  • assets/queries/slow_db/query.txt35 B
  • references/api-limits.md2 KB
  • references/attribution.md2 KB
  • references/concepts-span.md869 B
  • references/concepts-trace.md1 KB
  • references/console-deep-links.md1 KB
  • references/conventions-gcp-legacy.md3 KB
  • references/conventions-gcp.md3 KB
  • references/conventions-otel-genai.md7 KB
  • references/conventions-otel-grpc.md2 KB
  • references/conventions-otel-http.md2 KB
  • references/conventions-otel.md4 KB

And 60 more files on GitHub.

Alternatives to cloud-trace-querying

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

cloud-trace-querying: common questions

Can it query non-GCP telemetry?

No. The source says not to use this skill for querying non-GCP telemetry or for database query optimization outside Cloud Trace.

Why might fetch_related_logs return nothing?

The source lists three causes: no matching entries, missing IAM permissions for the caller, or matching entries in log views outside the default scope.

How are trace results shown to the user?

Span trees render as indented ASCII timelines in the terminal. They render as A2UI JSON graph structures when a UI is requested.

How do I install cloud-trace-querying?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cloud-trace-querying free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is cloud-trace-querying safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cloud-trace-querying?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

cloud-trace-querying Install

Add to stack

Loading.