← tutti gli articoli

Amazon OpenSearch can now store your AI agent traces next to your logs

AWS added agent traces to the OpenSearch Service optimized engine. What it does, how to try it, and the limits, from a data engineer's point of view.

·4 min di lettura

An agent that works in a demo is easy. An agent that runs every day in production and gives a strange answer on Tuesday at 14:10 is the hard part. When that happens I do not ask "which model is it". I ask: what did it do, step by step?

On 5 November AWS announced something for exactly this question: the Amazon OpenSearch Service optimized engine now supports agent traces. The idea is to keep the traces of your agents in the same place as your logs.

What it does

The announcement says the optimized engine now handles agent traces, including OpenTelemetry (OTel) traces, so traces and logs live together. A few details from the page:

  • OTel logs and traces are mapped to object, nested and flat fields, including multi-valued arrays.
  • Span events, span links, prompts and tool calls keep their nested structure, so you can query them at field level.
  • On hot-tier data, you can update, delete and upsert by document ID.
  • In OpenSearch UI you get Discover Traces, application performance monitoring, a service map, and views for agent traces and sessions.

For me, the important part is that prompts and tool calls are not flattened into one long string. If an agent called a tool with the wrong argument, I want to filter on that argument, not search through text.

A concrete example

Say you run a support agent that calls three tools. A customer complains about a wrong answer. With traces in OpenSearch you can open the session, follow each step, see which tool call came back empty, and then look at the logs of the same service in the same tool. That is the scenario AWS describes: one place for traces and logs. The announcement does not give a customer example, so this is my own illustration of how I would use it.

How to try it in three steps

  1. Check the requirements. The feature needs OpenSearch 3.7 and one of the 12 listed Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Asia Pacific (Mumbai, Singapore, Sydney, Tokyo), Europe (Frankfurt, Ireland, London) and Europe (Spain).
  2. Send OTel data to your domain. The page gives Amazon OpenSearch Ingestion as one example of how.
  3. Open OpenSearch UI and look at Discover Traces and the agent traces and sessions views.

AWS says the feature comes at no additional charge. You still pay for the domain and anything else you already pay for. The details of setup are in the OpenSearch Service developer guide on optimized log analytics, which the announcement links.

The limits

I would keep these in mind:

  • It stores and shows traces. It does not create them. Your agent code has to emit OTel data first. The announcement does not describe how to instrument a specific framework.
  • It does not judge answers. Seeing a trace tells you what happened, not whether the answer was good.
  • Version and Region matter. OpenSearch 3.7 and the 12 Regions above. The page does not say whether the feature is GA or preview.
  • Update, delete and upsert apply to hot-tier data only, per the page.
  • No numbers on scale or cost per trace. The announcement has no benchmark, so I would test with my own volume.
  • Traces contain prompts. That may include personal data. Think about retention and access before you turn it on. This is my caution, not a statement from AWS.

Two other things this week

Microsoft shipped the Microsoft Foundry extension for the Azure Developer CLI as generally available on 5 November (version 1.0). It adds agent setup and local testing to azd, with commands such as azd ai agent init, azd ai agent run and azd ai agent monitor --follow. It needs Azure Developer CLI 1.37.0 or later, and you pay for provisioned resources and model usage.

AWS also announced Web Answer on Amazon Bedrock AgentCore on 5 November: a managed tool that returns a cited answer to a question in one call, with domain include and deny lists. It is generally available in US East (N. Virginia) only, with per-tool-call pricing and no prices on the page.

My take

Agents in production are mostly a data problem. Prompts, tool calls and sessions are events, and events belong in tables and indexes we can query. I like that AWS treats traces as data next to logs, and that the price is zero extra. My next step would be a small test: one agent, one domain, and a check of how the nested prompt fields look in a query.

Sources

awsopensearchobservabilityagents