/agentic-engineering:adk-agent-observabilityfrom Agentic Engineering Skills
Instruments, monitors, and debugs Python Google ADK agents in production. Covers spans, metrics, logs, environment gates, exporters, SLIs/SLOs, alerts, BigQuery analytics, feedback capture, trace-to-session debugging, and blameless postmortems.
Ships in Agentic Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Decide which signals an ADK agent emits, where they go, what the numbers mean and how an alert leads back to a session and forward to an evaluation case. Deliver the smallest change to an existing agent, or a review with observable findings. Keep one owner per telemetry provider, count usage once per logical model call, read every claim against the pinned ADK version, and leave content policy to protect-adk-sensitive-data.
google-adk, opentelemetry-sdk, exporter and any openinference-instrumentation-google-adk or opentelemetry-instrumentation-google-genai versions (the first requires google-adk 2.10 or later from its 1.0.0; the second now ships from opentelemetry-python-genai; export paths). Most behaviour below is for 2.8.0; compatibility labels what changed in 2.6 to 2.11 and what later releases fixed. Keep pins unchanged unless a version decision is requested.GOOGLE_CLOUD_AGENT_ENGINE_ID present at runtime), Cloud Run, GKE or local adk web / adk api_server. The host decides the exporter, the default telemetry schema version and the metric reader (export paths)..env files: GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY, ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS, OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT, OTEL_SEMCONV_STABILITY_OPT_IN, ADK_EXPERIMENTAL_TELEMETRY, ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN, ADK_TELEMETRY_IGNORE_RUN_CONFIG, OTEL_EXPORTER_OTLP_*, OTEL_SERVICE_NAME, OTEL_RESOURCE_ATTRIBUTES. Record the effective value of each with its precedence (signals and schema).maybe_set_otel_providers, get_gcp_exporters, --otel_to_cloud, GoogleADKInstrumentor().instrument(), TracerProvider(...) or set_tracer_provider in application code, and every plugin on the App or Runner: BigQueryAgentAnalyticsPlugin, LoggingPlugin, DebugLoggingPlugin, AutoTracingPlugin. Note any RunConfig(telemetry=TelemetryConfig(...)).google_adk.* loggers run at DEBUG (full prompts in logs, documented behaviour).SESSION_SERVICE_URI, Agent Runtime sessions, a database), because debugging ends at a stored session.SKILL_DIR to this skill's directory. They read the file only; they never import the project or call a provider.python "$SKILL_DIR/scripts/invocation_summary.py" --session ./saved_session.json --format json
python "$SKILL_DIR/scripts/invocation_summary.py" --session ./saved_session.json --prices ./prices.json --format csv
python "$SKILL_DIR/scripts/events_to_eval_set.py" --session ./saved_session.json --out ./regressions.evalset.json --select tool_error --dry-run
invocation_summary.py reports, per invocation, logical model calls, tool calls and tool errors by name (dict responses with a truthy error, isError or is_error key, or an error status), the last authoritative usage per logical call (streaming partials are never summed), finish reasons, model error codes, wall time per step and an optional cost from a price table you supply (assets/price_table.example.json is a template with placeholder numbers). events_to_eval_set.py converts the same file into the 2.8.0 EvalSet shape with a required redaction step (trace to evaluation). Exit 1 means partial or malformed input; neither helper prints event text.
| Mode | Read | Produce |
|---|---|---|
| (a) Instrument | signals and schema, then export paths | One provider owner per process, the exporter for the host, the environment gate matrix with effective values, flush and shutdown on the request path, a check that spans and metrics arrive |
| (b) Define SLIs, SLOs and alerts | SLO and alerting | Good/total ratio SLIs from measured baselines, an error-budget alert, latency and tool-error alerts, Online Monitors with their judge billing approved |
| (c) Debug from a trace | debugging runbook | Alert to trace to session to reproduction, with the trace, invocation and session identifiers preserved at every hop |
| (d) Production to evaluation hand-off | trace to evaluation, feedback capture | Sampling rule, feedback join key, redacted EvalSet export reviewed before it becomes a regression case, handed to adk-agent-evaluation |
| (e) Audit telemetry | signals and schema, bigquery analytics, validation | Findings with file and line: duplicate spans or usage, missing correlation, unflushed exporters, content gates left at defaults, version-dependent names |
| (f) Hand over operations or review an incident | operations handover, debugging runbook, feedback capture | A handover document from assets/handover-template.md (contracts and evidence, support tiers with a one-accountable RACI, alert ownership, access transfer, runbook entries, model-retirement, evaluation-refresh and cost-review owners, known limits, hypercare exit), or a blameless review from assets/agent-postmortem-template.md with affected users by query, harm, the client's notification decision and the regression case |
Mode (f) on a project that is documents only (a design, a plan, no code or session export) skips steps 1 to 5 and 7 above and takes step 6's inventory from the design, labelling every alert, sink and store unverified: from the design until someone with access confirms it.
Modes compose. A new alert that needs a metric the agent does not yet emit is (b) plus (a); an incident review that produces regression cases is (c) plus (d). Structured analytics in BigQuery belong to bigquery analytics and apply to (a), (b) and (d).
Division of labour with Google's cloud skills: this skill decides which ADK signal means what and which SLI, alert, query or sink the agent needs; when the deliverable is the dashboard widget, alert policy, PromQL or SQL query, notification channel or log sink itself, consult the installed Google skill named at that decision in the references (from google/skills; if it is not installed, adk-engineer explains how to get it).
maybe_set_otel_providers does not replace a provider that is already set; a second owner (an OpenInference instrumentor, an application TracerProvider, a MeterProvider created before ADK's) produces duplicate or orphan spans and, on Agent Runtime, disables the request-driven metric reader with a warning. That reader has a documented tail loss even when it runs: a request shorter than its 5-second floor that is the last before idle loses its points, so a latency check on Agent Runtime sends a second request after a short one (export paths). Run the agent with run_async; a synchronous Runner.run executes on a worker thread, which third-party integrations document as breaking context propagation (vendor guidance).ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS defaults on and only false or 0 turns it off; OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT accepts NO_CONTENT, EVENT_ONLY, SPAN_ONLY, SPAN_AND_EVENT, treats true or 1 as EVENT_ONLY and anything else as NO_CONTENT. TelemetryConfig reads the environment once at construction; a per-request RunConfig.telemetry wins over the environment unless ADK_TELEMETRY_IGNORE_RUN_CONFIG is set. The policy itself (what may be captured, retention, redaction) is protect-adk-sensitive-data's; apply its baseline from references/implementation-recipes.md.invoke_workflow {entrypoint} instead of invocation) is the default only when GOOGLE_CLOUD_AGENT_ENGINE_ID is set; everywhere else v1 applies unless ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN=2. Dashboards keyed on span names break at that boundary; the source docstring plans v2 as the global default later.TokenUsage takes the newest cumulative usage_metadata of a streamed call, defines input as prompt plus tool-use prompt tokens and output as candidates plus thoughts tokens, and derives total from those two. Use the same arithmetic in dashboards and in invocation_summary.py; summing chunks or adding the model-reported total double counts. On 2.12.0 the call_llm span carries the same gen_ai.usage.* attributes as its generate_content span, so sum one span kind, generate_content, not every span. A session export omits AgentTool children's calls; aggregate by trace.adk.experimental.* metrics and context-cache attributes need ADK_EXPERIMENTAL_TELEMETRY=true (or the per-request opt-in); the eight invoke_workflow token and count metrics also need schema v2, and nested workflow datapoints fold into their parents, so filter gen_ai.workflow.nested out before summing.BatchSpanProcessor and a periodic reader need force_flush within the shutdown budget. A missing final flush looks like a silent sampling drop.logging.googleapis.com/trace, logging.googleapis.com/spanId and logging.googleapis.com/trace_sampled; a generic trace_id field does not correlate.Enabling telemetry.googleapis.com, Cloud Trace, Cloud Monitoring and Cloud Logging APIs, granting writer roles (roles/telemetry.tracesWriter or roles/telemetry.writer, roles/logging.logWriter, roles/monitoring.metricWriter; vendor guidance 2026-09-30), creating BigQuery datasets or tables (Storage Write API is billed), creating log sinks, enabling Online Monitors (each judge call is billed) and turning on content capture are consequential. Present project, host, principal, estimated volume and cost ceiling, obtain approval, and record what was enabled. Reading an existing trace or session with the user's own access is not.
Inspection is read-only, and code generation authorises no deployment, paid call or live test. Before any consequential operation (an API, billing or quota change, a billable resource, a secret, IAM, a data migration, a deployment, a deletion, or a paid or destructive test), read consequential operations, present the exact scope and limits, obtain explicit approval and end the turn to wait for it. Cleanup is a separate confirmed operation on resources this workflow created.
Read validation. Three checks are observable without a cloud project:
Runner with a scripted model and asserts exactly one invoke_agent, one execute_tool per tool call and one generate_content span per logical model call (the names and counts as observed on the pinned version; 2.8.0 may emit one span per streamed chunk on some paths, see compatibility), with gen_ai.conversation.id set and content attributes absent under the chosen gate.invocation_summary.py over a saved session with a streamed call, asserting the input and output token totals equal the final chunk, not the sum of chunks.events_to_eval_set.py --select tool_error --dry-run over the same session, asserting the case count, the redaction counts and an empty structural_problems list.Live checks (spans in Trace Explorer, metric descriptors in Cloud Monitoring, rows in BigQuery, an alert firing on a synthetic failure) need an approved project and principal. Report what was inspected, which gates were effective, which tests ran and what remains unverified. Record every URL with its page date; semantic convention names and Google Cloud consoles change faster than this skill.
Label each result with its tier (offline, local, live or release) and
outcome (pass, fail, blocked or not run) as
evidence labels defines them;
earlier, vendor and documentation-only results are historical,
vendor-measured or guidance, never this session's evidence.
Independent community project; not affiliated with or endorsed by Google.
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/agent-postmortem-template.md (opens in a new tab)assets/feedback_record.schema.json (opens in a new tab)assets/handover-template.md (opens in a new tab)assets/price_table.example.json (opens in a new tab)assets/semconv-expected-violations.adk-2.11.0.json (opens in a new tab)references/bigquery-analytics.md (opens in a new tab)references/compatibility.md (opens in a new tab)references/debugging-runbook.md (opens in a new tab)references/export-paths.md (opens in a new tab)references/feedback-capture.md (opens in a new tab)references/operating-rules.md (opens in a new tab)references/operations-handover.md (opens in a new tab)references/signals-and-schema.md (opens in a new tab)references/slo-and-alerting.md (opens in a new tab)references/sources.md (opens in a new tab)references/trace-to-evaluation.md (opens in a new tab)references/validation.md (opens in a new tab)scripts/events_to_eval_set.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
google-adk, agent-observability, telemetry, monitoring, debugging, production
npx claudepluginhub ruslankhis/agentic-engineering-skills --plugin agentic-engineering26 skills in this plugin
/adk-agent-evaluationBuild, adapt or audit a Python ADK agent's test strategy: deterministic tool and Runner tests, live eval sets, simulated conversations, conformance replay, strict result checks and quote or citation support. Use for agent behaviour, regression coverage, eval reliability, fixing a failed stage without re-running paid earlier ones, holdout budgets, error analysis on a labelled dev set to fix wrong decisions, measuring each prompt, exemplar or model change, and subject-matter expert labelling: failure taxonomy, inter-rater agreement and judge calibration. Do not activate for non-agent unit tests, standalone model benchmarks, deployment or cleanup alone, prompt wording or exemplar design (adk-agent-instructions), model settings (adk-model-and-output-contracts), wiring eval gates into CI (adk-release-engineering), production telemetry (adk-agent-observability), adversarial suites (adk-agent-security) or presenting results (adk-presenter)./adk-agent-instructionsDesign, review or repair the instructions of Python Google ADK agents, covering instruction structure and altitude, session-state templating, tool-use guidance inside the prompt, sub-agent descriptions for routing, few-shot exemplar design, the instruction-versus-code division, model-generation prompt notes and prompt-as-code layout with change tests. Use when an agent follows its prompt poorly, over- or under-calls tools, routes to the wrong sub-agent, raises templating KeyErrors, or a prompt must move to a new model generation. Do not activate for the measured evaluation loop (adk-agent-evaluation), orchestration or a key an earlier agent's output_key never wrote (adk-workflow-design), tool docstrings and parameter schemas (adk-tool-interface-design), output schemas or model configuration (adk-model-and-output-contracts), releasing prompt versions (adk-release-engineering), or injection-screening products (protect-adk-sensitive-data).Other plugins' skills for the same job