SkillsReviewed · BagelHole

Agent Observability

Agent Observability is a monitoring skill for developers and operations teams running AI agents, but its privacy and reliability examples need correction before production use. It combines Python instrumentation, OpenTelemetry traces, Prometheus metrics, Grafana dashboards, cost estimates and optional Langfuse or Helicone integrations.

Researched 16 Nov 2026

In short.

Agent Observability is a monitoring skill for developers and operations teams running AI agents, but its privacy and reliability examples need correction before production use. Its main value is connecting model calls, tools, token usage, spending and troubleshooting in one implementation reference. As written, the span redactor exports the original span, the logging filter leaves structured fields and exception text untreated, and error-rate calculations use a denominator updated only on successful model calls. Several metrics are declared without instrumentation that updates them. No code was executed; runtime compatibility, performance and operating costs are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to the selected devops/ai/agent-observability folder at commit 0365f57a079b1332f95cf26e31dd2d5332a8399f, whose supplied complete inventory contains SKILL.md, plus the repository-level LICENSE notice. Embedded code and configuration examples are included in that document. Other repository folders, linked skills and external service documentation are excluded. No code, installation, dashboard, query, integration, redaction path or alert was executed; runtime behavior and operational suitability remain unverified.

The overview

Identity

Agent Observability is an assistant skill distributed as devops/ai/agent-observability/SKILL.md in BagelHole/DevOps-Security-Agent-Skills. Its metadata names agent-observability, identifies devops-skills as the author and declares version 2.0. It contains instructions and implementation examples rather than a standalone monitoring application.

The original folder address is [https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/devops/ai/agent-observability]. The supplied source snapshot is pinned to commit 0365f57a079b1332f95cf26e31dd2d5332a8399f.

Assessment

This is a useful implementation reference for engineers who want to connect existing monitoring tools to an AI application. It brings together measurements, request tracing, structured logs, dashboards, cost alerts and debugging steps, with concrete examples for model calls and tool execution.

Adopt it as material to adapt and correct. Its redaction examples do not provide the protection their descriptions promise, and its reliability calculations can misrepresent failures. Installation, runtime behavior and compatibility with current dependencies were not assessed.

Users

The intended users operate autonomous agents, LLM-backed APIs, retrieval-augmented generation pipelines, multi-agent systems or batch inference jobs. It is particularly relevant when a team cannot attribute spending to an agent, locate slow tool calls or connect failed requests to diagnostic traces.

Beginners can use it to learn which signals matter, but implementing it requires Python application changes and familiarity with monitoring infrastructure. Experienced developers will find specific instrumentation patterns and queries, while still needing to supply application integration and correct the identified defects.

Capabilities

The document defines measurements for end-to-end request latency, model-call latency, tool latency, input and output tokens, cached tokens, estimated spending, failures, retries and active requests. It supplies a Grafana dashboard definition and Prometheus recording and alert rules.

Python examples cover model-call spans, tool decorators, trace-context propagation between services, JSON logging and token-based cost estimates. Optional sections show Langfuse tracing and a Helicone proxy configuration. Debugging guidance connects slow responses, token growth and tool failures to relevant queries.

Coverage varies by feature. Some measurements are only declared, and the examples do not implement a complete request lifecycle. The document mentions prompt management and scoring through Langfuse, but does not demonstrate a scoring implementation.

Using it

Requirements

The main examples require a Python application, prometheus_client, the OpenTelemetry SDK and OTLP exporter, and an LLM client exposing the illustrated chat-completion response structure. The context-propagation example also imports httpx. Optional integrations introduce Langfuse or an OpenAI client configured for Helicone.

The monitoring path needs somewhere to export traces, a Prometheus scrape endpoint and monitoring services configured to consume the data. Grafana is needed for the supplied dashboard. Live model and optional hosted-service calls require the appropriate credentials.

No Python version, dependency pins, lockfile, infrastructure sizing or supported SDK compatibility matrix is supplied. The document also does not explain installation into a particular assistant.

Mechanism

Metrics aggregate activity into counters and timing distributions. Traces record individual operations as spans so a request can be followed through model calls, tools and downstream services. Structured logs carry identifiers that can connect an event to its trace.

The model wrapper measures elapsed time, reads token usage from the response, attaches span attributes and increments selected metrics. The tool decorator records successful or failed tool calls. Separate functions calculate estimated spending and attach trace identifiers to logs; the application must call and connect these pieces.

The dashboard uses Prometheus queries to calculate latency percentiles and activity rates. Its p95 view represents the latency at or below which approximately 95 percent of the measured requests fall. These views depend on the corresponding application measurements being populated correctly.

Setup

The implementation material appears as named code snippets inside SKILL.md. To use it, assemble the snippets into the application, connect shared metric definitions and imports, initialize tracing and logging, and instrument model calls, tools and the full agent request.

Expose the metrics for scraping, configure the trace destination, import the dashboard and load the desired recording and alert rules. The example OTLP exporter uses insecure=True, so its transport configuration needs review for the intended deployment.

Cost recording, active-request tracking and end-to-end timing need explicit call sites beyond those shown. Correct the privacy and measurement defects before sending sensitive traffic or relying on alerts. The source recommends staging verification, but supplies no execution results.

Example

For a support agent with slow responses, the documented approach is to compare model-call and tool-call latency, inspect input-token volume and retries, then expand a trace to find the slow operation. The tool decorator illustrates instrumentation around web_search and sql_query.

Those tool functions are placeholders, so the skill does not provide working search or database tools. Its example log entry illustrates a record format; the displayed duration, token counts and cost are not benchmark results. No example was executed.

Assessment & evidence

Limitations

The span redactor computes sanitised_attrs but exports the original span without applying those attributes. As written, it does not redact the exported span. The logging filter changes the message and formatting arguments, but does not scrub structured extra fields or exception text emitted by the JSON formatter. These examples do not establish privacy protection or regulatory compliance.

LLM_CALL_LATENCY is observed only after a successful model call, yet the error-rate and success-rate queries use its count as the denominator. Consequently, they compare errors with successful calls rather than all attempts. These calculations also do not establish end-to-end agent success or account for tool failures.

The stated 30-day success objective is paired with a five-minute success-rate rule and a ten-minute alert duration. The rule labelled multi-window uses a single five-minute rate. Neither example demonstrates the longer-window behavior described.

End-to-end latency, active requests, cached tokens, retries and tokens per request are declared without corresponding updates in the shown wrappers. Cost recording is separate from the model wrapper. The wrappers are synchronous, and the model example expects a completed response with usage and choices; asynchronous and streaming operation need additional handling.

The Helicone example routes model traffic through a logging proxy and enables caching. The document also recommends durable storage of full prompts and responses. Retention, access controls and complete redaction for those data paths are not demonstrated.

Reasoning

The useful design choice is connecting aggregate measurements with individual traces and logs. A latency chart can reveal a slowdown, while a trace can identify the model call or tool involved. Keeping request and user identifiers out of metric labels is another concrete operational recommendation in the document.

The implementation defects affect the same outcomes the skill promises: incorrect redaction can expose sensitive data, incomplete metric updates can leave dashboards empty, and incorrect denominators can distort reliability reporting. Correcting those details matters more than adding further dashboard panels.

Latency, spending and execution failures do not establish whether an agent's answer is correct. The document links to a separate agent-evals skill, but that material is not included here.

Alternatives

Within the document, the manual OpenTelemetry and Prometheus path offers explicit instrumentation examples. The Langfuse path uses decorators and observation metadata, while the Helicone path changes the model client's base URL and headers to use a logging proxy. These approaches provide different integration points rather than requiring every option at once.

The document also offers a Sloth specification as an alternative way to declare a success objective. Current compatibility, pricing, privacy controls and relative setup effort for these external tools are not established by the supplied examples.

Evidence

The implementation evidence is the complete captured SKILL.md at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/devops/ai/agent-observability/SKILL.md]. Its supplied SHA-256 is 8f2bdc0a8415d2139e5d3cc2b73efc82874f6045ce14ddb849b3e2c7fb55fafe.

The repository LICENSE supplies the accompanying rights notice. The captured folder inventory lists SKILL.md as the only selected file; named Python, JSON and YAML files appear as embedded examples rather than separate captured assets.

The conclusions about redaction, metric updates and query denominators follow from the supplied source text. There are no supplied execution logs, dependency checks, dashboard import results, privacy tests or performance measurements.

Access & freshness

Costs

Actual operating cost is unknown. The MIT permission grants reuse without specifying a purchase fee, but deployment may involve model usage, monitoring infrastructure, telemetry storage and optional hosted services. No service quotes or measured resource consumption are supplied.

The cost calculator multiplies input and output token counts by a hard-coded model-pricing table described as current in early 2026. Those values are not established as current prices. The calculation does not separately price cached tokens, and an unknown model returns zero from calculate_cost while record_cost skips it, potentially concealing unpriced usage.

The hourly spending and projected daily spending alerts are example thresholds, not operating-cost estimates. Their usefulness depends on accurate prices and complete cost-recording calls.

Rights

SKILL.md declares MIT licensing. The repository LICENSE identifies copyright 2026 Toby Miller and permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.

The license disclaims warranties and limits author liability. It does not establish rights or contractual terms for the external model providers, hosted monitoring services or data processed through them. The captured notice is available at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/LICENSE].

Freshness

The source snapshot was captured on 16 November 2026 at 09:05:29.743 UTC from commit 0365f57a079b1332f95cf26e31dd2d5332a8399f. Version 2.0 is the skill's own metadata value, not a dependency version or evidence of compatibility.

The model-pricing table describes early-2026 rates, so the capture date does not establish price accuracy. The supplied files do not establish the latest repository state, release history or compatibility with current Langfuse, OpenTelemetry, OpenAI or Helicone interfaces.

Actions

Start by correcting the span-export path so scrubbed data is actually exported, and cover structured log fields and exception text. Verify what reaches every configured telemetry destination before using sensitive requests.

Define total model attempts and end-to-end agent outcomes explicitly, correct the reliability denominators, and implement alert windows that match the intended objectives. Connect every dashboard metric to an update path, including request lifecycle, retries and cost recording.

Replace the example price table with applicable rates and report unknown models as unpriced rather than free. Check SDK compatibility and streaming or asynchronous requirements, then use staging requests to verify trace relationships, metric values, dashboard queries and alert behavior. These are recommended adoption steps; none has been performed.

Evidence for this report

LICENSEnotice · checked 2026-11-16
devops/ai/agent-observability/SKILL.mdselected · checked 2026-11-16