Datadog LLM Observability alternative: Datadog vs Amiril
A Datadog LLM Observability alternative for agents whose tools change things. Amiril ranks each agent's runs by rarity and blocks a bad tool call before it runs.
A Datadog LLM Observability alternative for agents whose tools change things. Amiril ranks each agent's runs by rarity and blocks a bad tool call before it runs.
Datadog's agent tracing ships inside ddtrace, the library behind its APM. One trace follows a request from a backend service into the agent's reasoning and out to the user's session. If you want a Datadog LLM Observability alternative because an agent's tool calls need stopping before they run, Datadog's own answer is a separate security product, AI Guard. We make Amiril, which checks every tool call against your rules inside the agent's process before the tool runs and drafts those rules from problems in the agent's own runs.
Datadog now sells LLM Observability as Agent Observability, and the product page's title still carries both names. Your agent runs on the same Datadog tracer as your other services, and its LLM spans sit next to APM services, infrastructure metrics and RUM sessions. When checkout slows down, you can tell whether the model call or a slow database was to blame.
Its experiments run prompts, models and agent configurations over a dataset and score the results with evaluators. The Agent Observability docs describe two newer pieces. Insights reads incoming traces for recurring cost and reliability problems and suggests a root cause and a fix for each one. Patterns sorts production traffic into a hierarchy of topics, so you can see what users ask about.
The Datadog SDK is optional, since Datadog takes OpenTelemetry traces that follow the GenAI semantic conventions from version 1.37, or OpenInference. Billing counts LLM spans only, one per call to a model provider. Tool, workflow, agent, embedding and retrieval spans are free. On the pricing list the first 40,000 LLM spans a month cost nothing, and 100,000 cost $160 a month billed annually.
Stopping a call takes a separate product, AI Guard, at $0.80 per million input tokens scanned on an annual plan. It sits inline between the orchestrator and the model, and the Datadog SDK sends it the conversation around each model call and tool call. AI Guard is a security product. It looks for prompt injection, jailbreaks, tool misuse and data exfiltration, and it can redact secrets and personal data on the way through.
A policy covers every service, or one service, one environment or both, and the default starts in Monitor only mode until you switch it to Block unsafe. The policy docs list what goes in one. Each tool can be set to Evaluate, Pass or Block. Custom rules are keywords and regular expressions, matched against the last message, which can be a tool call's arguments or its result. Anything else is left to the evaluator's judgement of the conversation, tuned with a sensitivity setting and a short description of the app.
That handles "this agent never calls drop_table" well, and "never send anything shaped like an API key". Suppose an on-call assistant, oncall_assistant, has check_health and restart_service tools. An alert fires on search-api. check_health comes back healthy, but the alert's runbook line says to restart, so the next call is restart_service. Datadog shows you all of it in one trace, the restart span next to the burst of errors users hit while the pods came back.
Setting restart_service to Block also stops the assistant restarting a service that really is down. A keyword or a regular expression on the restart call can't see what the health check said one step earlier. That leaves the evaluator. It weighs earlier steps, but it scores the conversation per attack category, and you steer it with sensitivity and that description, not a condition you write.
An Amiril rule can read what the health check returned before it decides on the restart. This one lets a restart run only after a health check earlier in the same run found that service down:
@id("restart-needs-failed-check") @sentence("No health check in this run found {service} down") block ( agent == "oncall_assistant", tool == "restart_service" ) unless { service = call.args.service; healthy = latest(check_health{ args.service == service }).result.healthy; healthy == false };
On the search-api restart, restart_service never runs, and the model reads this in place of its result:
The call to restart_service was not performed. Rule restart-needs-failed-check blocked it: No health check in this run found search-api down (healthy true). Do not retry this call with different arguments or achieve the same outcome another way; tell the user it was not performed.
Had check_health come back false, the restart would have gone through, and a restart with no health check before it is blocked as well. Other rules read a call's arguments, allow one call per ticket with @per, or cap a running total across a session with sum, and the rule language tour builds each one up from a single limit.
You don't have to think of the health check rule yourself. Amiril learns what is normal for each agent from that agent's own runs, and ranks every new run by rarity. The run's page lists the rarity factors behind it, such as a step order this agent rarely takes. Runs that share a problem are grouped into an issue, with a severity and a state.
An AI model reads a sample of an issue's runs. If a rule would have stopped them, Amiril drafts one and tests it on past runs, and keeps it only if it catches some of the issue's runs while firing on at most one in a hundred of the agent's other runs. It shows up as a rule suggestion with a line such as "Would have blocked 4 of 5 runs", and Create rule opens it in the editor.
Before the rule blocks anything, Test on past calls replays it over the last 24 hours, 7 days or 30 days of the agent's real calls and lists each one it would have fired on. Once published, it starts in Shadow. It records what it would have done while every call goes ahead, and you switch it to Enforce on its page when the list looks right.
The SDK holds a copy of your published rules in the process, so a check makes no network request. It fetches changes about once a minute without a redeploy. If Amiril can't be reached, it keeps enforcing the last rules it had and saves them to disk for the next restart. In a plain Python agent you name the agent, wrap its tools and mark each run:
import amiril
from amiril import plain
amiril.init() # reads AMIRIL_API_KEY and AMIRIL_ENDPOINT
agent = plain.Agent("oncall_assistant")
@agent.tool
def check_health(service: str) -> dict:
return health.check(service)
@agent.tool
def restart_service(service: str) -> dict:
return deploys.restart(service)
with agent.run(session_id=incident_id) as run:
for tool_calls in model_replies(): # your own model loop
run.turn()
for call in tool_calls:
... # call the wrapped tools as usualrun.turn() marks each model reply, and rules that check the order of calls or count them read those marks. LangGraph, Google ADK and LiveKit have their own adapters, and TypeScript works the same way.
| Feature | Amiril | Datadog |
|---|---|---|
| Stops a tool call before it runs | Yes, in the agent's process, through the SDK | With AI Guard, a separate security product in the path of the agent's model calls |
| What a check can read | The call's arguments, earlier calls and their results, session totals | Per-tool Block or Pass, keywords and regular expressions on the last message, and an evaluator's judgement |
| Where rules come from | Rule suggestions drafted from issues and tested on past runs | Policies you set per service and environment |
| Trying a rule before it blocks | Shadow, and Test on past calls over 24 hours, 7 days or 30 days | Monitor only mode, and a Simulator that evaluates sample conversations |
| Finding runs that went wrong | Runs ranked by rarity against each agent's own history, grouped into issues | Insights, Patterns by topic, and monitors |
| Traces in | OpenTelemetry, framework guides, and Langfuse exports with their history | The Datadog tracer, OpenTelemetry GenAI conventions, OpenInference and an HTTP API |
| Starting price | Free plan; Team $249 a month | Free up to 40,000 LLM spans a month; $160 a month for 100,000, billed annually; AI Guard from $0.80 per million input tokens |
Pick Amiril when your agent's tools change things outside the conversation, like restarting a service or moving money. It also suits a team without time to write policies from scratch, since Amiril drafts each rule from the agent's own issues and shows which of the last 30 days of calls it would have blocked.
Whichever Datadog LLM Observability alternative you pick for your agents, your APM traces and monitors stay in Datadog. If you're weighing Amiril for its monitoring as well, the agent observability page covers rarity, issues and alerts in more depth, and AI agent guardrails covers the rules across every framework.
Only blocking needs the SDK wrap above. If your agent already exports OpenTelemetry to Datadog, add a second exporter to the same tracer provider, and every span goes to both:
import os
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
provider = TracerProvider()
provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(
endpoint=os.environ["DD_OTLP_TRACES_ENDPOINT"],
headers={"dd-api-key": os.environ["DD_API_KEY"], "DD-LLMObs-Enabled": "true"},
)))
provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(
endpoint=os.environ["AMIRIL_TRACES_ENDPOINT"],
headers={"Authorization": f"Bearer {os.environ['AMIRIL_API_KEY']}"},
)))
trace.set_tracer_provider(provider)DD_OTLP_TRACES_ENDPOINT is the OTLP traces endpoint for your Datadog site, and the DD-LLMObs-Enabled header turns on LLM Observability for that export only. Amiril's endpoint and an API key come from the Data page, under Set up a new installation. Amiril reads the GenAI conventions and OpenInference, the same spans Datadog reads, and files each run under the agent named in gen_ai.agent.name.
With Slack connected, Amiril posts when an issue forms at High or above and sends a daily digest. Your Datadog monitors carry on as before.
No. Amiril works either as your Datadog LLM Observability alternative or as an add-on to it. Send the same OpenTelemetry spans to both, keep Datadog for the stack, and use Amiril for rarity, issues and rules on tool calls.
AI Guard judges conversations for attacks such as prompt injection and data exfiltration, with per-tool settings and keyword or regular expression rules. An Amiril rule is text that reads the call's arguments and the run's earlier calls and results. You test it on past calls, run it in Shadow, then switch it to Enforce.
Rules run through the SDK on LangGraph, Google ADK, LiveKit, and plain Python or TypeScript. Traces come in over OpenTelemetry, with guides for LangGraph, Google ADK, LiveKit, the OpenAI Agents SDK, CrewAI, the Anthropic SDK and the Claude Agent SDK.
Amiril starts free, with no card. Team is $249 a month, and the pricing page lists what each plan includes.