Major

Agent Observability: What Deterministic Apps Change

Tracing model calls matters, but it is only part of agent observability. See how deterministic apps make repeated execution inspectable and change what teams need to monitor.

Rahul RamakrishnanUpdated
Control room with rows of monitors and chairs for watching live systems

Agent observability is the ability to reconstruct what an agent workflow did: which model calls ran, which tools were invoked, what state changed, under whose credentials, and how long each step took. Traces cover that well for model-driven steps. For repeatable steps, the better answer is to move them into a deterministic app on Major, so the run leaves an execution log and a queryable record instead of a reasoning trace you have to interpret.

This piece is for platform, security and AI leaders deciding what to instrument before agents touch systems of record. It does not cover agent evaluation methodology or prompt-injection defense, and deterministic apps do not remove the need for tracing. They change where you point it.

What does agent observability need to capture?

Google Cloud defines agent observability as "the methods for gaining insights into the internal state and behavior of software agents" and lists six things to watch: LLM interactions, tool usage, agent behavior and reasoning, performance, security and safety, and quality and evaluation.

That list is correct and incomplete. Every item describes telemetry. None says who was allowed to do what at the moment of action. A team can have flawless traces and still be unable to answer the first question an auditor asks: was this action permitted?

Four concepts get blurred on vendor pages, so keep them apart:

  • Observability answers what happened at runtime. Output: traces, logs, metrics.
  • Evaluation answers whether the output was good. Output: scores against criteria.
  • Deterministic testing answers whether the code does what it should. Output: pass or fail assertions.
  • Governance answers whether the action was allowed, and by whom. Output: scoped credentials, approvals, audit events.

Match observability to the execution surface

Most agent work mixes two kinds of steps. Some need judgment: classifying an ambiguous request, deciding whether a contract clause applies. Others repeat: routing a record, updating a status field, writing to a system of record. One observability approach applied to both over-instruments one and under-serves the other.

Our position: trace what the model decides, log what the app executes, and correlate the two.

Trace what the model decides

Model-driven steps are probabilistic, so they get the full apparatus. Langfuse describes traces that record LLM calls with prompts, completions, token usage and cost, and tool calls that distinguish the tools available from the tools actually invoked. That distinction matters for audit. If you cannot see what the agent could have done, you cannot judge whether what it did was reasonable.

OpenTelemetry's GenAI work is defining semantic conventions for models, vector databases and agents. The agent conventions are still evolving, so verify the current spec before you standardize on attribute names. Datadog's agent observability product traces prompts, retrieval steps, tool calls and agent decisions, and correlates LLM spans with APM and infrastructure signals. Teams already on Datadog get real value from that correlation.

A model trace carries the model, prompt version, tool inventory, selected tool, arguments, latency, token counts, and the agent's stated reasoning where the model exposes it.

Log what the app executes

A deterministic app step is code. It takes a defined input, applies a rule, and produces a result. You do not need a reasoning trace to explain why a billing ticket routed to the billing queue. You need a record that it did, with the inputs, the actor, the permission that allowed it, and the state before and after.

Because the app holds its own database, the state change is a row you can query, not a sentence in a context window. This is the claim that belongs to Major. An agent that learns a procedure and performs it through the model on every run leaves you a reasoning trace to interpret each time. An agent that builds an app for the repeatable part leaves you code that ran the same way and a log of what it did. Reason once, run forever applies to observability too: the second run is easier to read than the first.

Observe the handoff with three IDs

The riskiest point in a hybrid workflow is the seam between a model decision and an app invocation. A classification was made, an app was called, a record changed. If those three events live in three systems with three identifiers, the seam is invisible.

Propagate three IDs everywhere. The agent run ID joins the model trace. The app execution ID joins the app log and state. The business record ID (ticket, invoice, account) joins both to the thing the business cares about. Any one should lead you to the other two in a single query.

Evaluate judgment, test repeatable code

Langfuse's guide splits evaluation usefully: human annotation for ambiguous cases, code evaluators for deterministic properties, and LLM-as-a-judge for semantic calls like groundedness. Evaluations score the model's judgments. Conventional tests and run assertions cover the app logic.

What a deterministic app layer changes is the evaluation budget. If routing, status changes and field updates run in code with their own tests, evaluation effort concentrates on the classification and the exceptions, not on re-scoring a hundred fixed steps for every judgment call.

Put privacy and retention in the design

Prompt and output telemetry contains whatever the agent saw: customer messages, account details, contract text. Unredacted telemetry is a second copy of sensitive data with weaker access controls than the original. Decide four things before you instrument: what gets redacted before it leaves the runtime, who can read raw prompts versus summaries, how long each class of telemetry lives, and whether you can export it when a regulator or customer asks. Platform behavior varies on all four, so verify retention, redaction and export in your vendor's current documentation. Observability tools record unsafe actions. They do not prevent them.

Build observable agent workflows on Major

Major is the enterprise platform where agents build the software they run on. Here is how a support-ticket triage workflow looks there. This is an illustrative design, not a captured production trace.

  • Connectors: Zendesk to read tickets, Slack for the approval message, each with credentials scoped to the operations the workflow needs.
  • The app that holds state: a routing app with its own managed database. Each execution writes a row with execution ID, operation, state before and after, and error path.
  • The agent and its judgment: the agent classifies ambiguous intent and decides when a ticket needs a person. That is the only step that produces a full model trace, which you evaluate with the tooling you already trust.
  • The trigger: a workflow fires on each new ticket, passes the agent run ID into the app call, and stores the business record ID on the app row.
  • Approval path: a refund above a threshold makes the app emit an approval-required event. A person approves in Slack, and the write lands under a scoped credential.
  • Governance: role-based access on the app, scoped credentials where the agent acts, and audit events on every action.

For each action, log the same fields: timestamp, actor and credential scope, operation name, input reference (not the raw input), result or status, and the error or approval path taken. Together with the model trace, they let you answer for any record which tools were available, what the agent decided, what side effects landed, under whose credentials, and whether the run can be repeated. Start building this workflow free.

Where observability vendors get this wrong

The observability platforms are good at what they do. Google, Datadog and Langfuse all cover traces, evaluations and monitoring, and Datadog and Google also list security and governance features. The critique here is narrower and concerns framing.

The framing treats the trace as the control plane. A trace records that an agent called a tool. It does not establish that the call was authorized, and in most designs it records the action after the fact. Google's own list includes "security and safety" as one of six monitoring dimensions, which is monitoring policy enforcement, not enforcing it. That is the right scope for an observability product. The mistake is buyers assuming it is also the authority boundary.

The second problem is uniform treatment. When every step is traced as a model decision, deterministic steps generate telemetry volume without much diagnostic value. Make the repeatable steps code, and they stop being spans you interpret and become executions you query.

Our position

Trace the reasoning. Inspect the run. Govern the action. Three jobs, and no single tool does all three. Major's app layer takes the second and third and gives the first a smaller surface. What it does not solve: model-driven paths stay probabilistic, and they still need traces, evaluations and redaction. The app layer does not replace your observability vendor. It shrinks the share of the workflow that depends on reading reasoning.

For related reading, see why agent observability needs to cover execution and governing agents at the point of action.

More use cases by tool: More Datadog use cases.

Start building on Major

Build the repeatable half of your agent workflows as governed apps with their own database, execution log and audit trail, and keep model tracing for the judgment calls that remain.

Related articles

Frequently asked questions

What is agent observability?
Agent observability is the practice of capturing runtime evidence of what an agent workflow did: model calls, tool operations, outcomes, timing, errors, and state changes. It diagnoses what happened. It differs from evaluation, which scores output quality, and from governance, which decides whether an action was permitted.
What are examples of agent observability platforms?
Datadog, Langfuse, and Google Cloud Observability each document agent tracing and monitoring, and OpenTelemetry is defining open semantic conventions for AI agent telemetry. Capabilities, retention, redaction, and export behavior change often, so verify them in each vendor's current documentation before you choose.
What should an AI agent trace include?
A trace should record model calls with prompt version, latency, and token usage; the tools available and the tool calls actually made; errors; and a shared identifier linking the agent run, any app execution, and the business record. Redact sensitive inputs and restrict access to raw prompts.
How is agent observability different from AI evaluation?
Observability captures runtime evidence so a team can diagnose what happened in a specific run. Evaluation scores outputs or behavior against defined criteria, using human review, code checks, or model judges. You need both: traces supply the cases, and evaluations tell you whether the behavior was acceptable.