Datadog vs Logfire: how to choose
Both are general observability vendors with agent tracing, evals and prompt versioning. Datadog is the natural choice if your services already report to Datadog; Logfire suits teams that want one OpenTelemetry platform, a self-hosted path on Enterprise and a gateway in the same product. The APM vendor you already pay for usually settles this.[1][4]
What is the difference between Datadog and Logfire?
Datadog Agent Observability (formerly LLM Observability) and Logfire both put agent traces beside the rest of your application telemetry; the difference is that Datadog's is a module of the Datadog SaaS platform with no self-hosted option, while Logfire is a standalone OpenTelemetry platform from Pydantic that can be self-hosted on Enterprise. Datadog bills only LLM spans, and Logfire bills every record. For blocking, Datadog sells AI Guard separately, and Logfire's AI gateway covers model calls.
At a glance (checked 20 October 2026)
| Decision factor | Datadog | Logfire |
|---|---|---|
| Ownership | Datadog, public company (Nasdaq: DDOG) | Pydantic, independent |
| Requires | A Datadog account; one module of the Datadog platform | Standalone; any OpenTelemetry SDK can send data |
| Self-hosting | None; Datadog-hosted only | Enterprise, on Kubernetes via Helm |
| What is billed | LLM spans only; tool and agent spans are not billed | All records: spans, logs and metrics |
| Run-time blocking | AI Guard, a separate product in limited availability | Gateway guardrails and spend caps on model calls |
| SDKs | Python, Node.js, Java, Go (experimental), HTTP API | Python, JavaScript/TypeScript, Rust |
| Free tier | 40K LLM spans a month, 15-day retention | Personal: 10M records a month, 1 seat, 30-day retention |
| First paid tier | Pro: $160 a month billed annually, 100K LLM spans | Team: $49 a month, 10M records, 5 seats |
Datadog vs Logfire: capabilities side by side
| Capability | Datadog | Logfire | Prefactor |
|---|---|---|---|
| Observe | |||
| LLM call tracing | ✓ | ✓ | ✓ |
| Multi-step agent tracing (tool calls, nested spans) | ✓ | ✓ | ✓ |
| Cost tracking | ✓ | ✓ | ✓ |
| OpenTelemetry support | ✓ | ✓ | ✓ |
| Evaluate | |||
| Offline evals (datasets, experiments) | ✓ | ✓ | ✓ |
| Online evals on production traffic | ✓ | ✓ | ✓ |
| LLM-as-a-judge scoring | ✓ | ✓ | ✓ |
| Code-based evaluators | ✓ | ✓ | ✓ |
| Human review and annotation | ✓ | Partial | ✓ |
| Prompt versioning and playground | ✓ | ✓ | — |
| Act on findings | |||
| Runtime controls on live agent actions | Partial | Partial | ✓ |
| Gateway or proxy in the request path | — | ✓ | — |
| Licence and deployment | |||
| Open source | Partial | Partial | Partial |
| Self-hosting | — | Partial | Partial |
Which platform your services already report to
If you already run Datadog, its Agent Observability correlates agent traces with your existing APM and infrastructure data, and adding Logfire means a second place to look during an incident. Without an APM vendor, Logfire can cover both jobs as a standalone OpenTelemetry platform.
Read more
Datadog renamed LLM Observability to Agent Observability in June 2026. It needs a Datadog account, accepts OTLP directly using OpenTelemetry GenAI conventions v1.37 or later or OpenInference, with a three to five minute ingestion delay, and is not available on Datadog's US government sites. Python and Node.js are well covered, Java auto-instruments only OpenAI and Go is experimental; Logfire's tooling is Python-first, with JavaScript, TypeScript and Rust SDKs.
Evals and prompt versioning
The two are closer here than their positioning suggests: both run experiments on datasets, score production traffic and version prompts with runtime fetching and rollout controls.
Read more
Datadog's LLM judges run on sampled production spans using your provider account; code evaluators run automatically only in experiments, and in production you submit results through the SDK or API. Datadog supports Pydantic Evals among others, so pydantic-evals code can feed either platform. Logfire's live evaluations run in your application at a sample rate. Datadog has annotation queues and A/B tests of prompt versions, some in Preview; Logfire's annotations are in beta, its queues are early access, and its Prompt Playground replays prompts from captured traces.
Blocking at run time
Agent Observability does not block; Datadog's separate AI Guard product blocks prompts, responses and tool calls, billed per token scanned and listed as Limited Availability in June 2026. Logfire's gateway, part of Logfire since March 2026, can observe, flag, redact or block model calls and enforce hard spend caps, but not tool actions.
Read more
Neither vendor documents approval holds.
Pricing shape
As of 20 October 2026, Datadog bills only spans for calls to an LLM provider, while Logfire bills every record, so an agent with many tool calls meters lightly on Datadog and an application with many non-LLM spans meters heavily on Logfire.
Read more
Datadog Free covers 40K LLM spans a month with 15-day retention. Pro is $160 a month billed annually ($200 month to month, $240 on demand) for the first 100K LLM spans, then $3.50 per 10K on annual terms, and 30-day retention is an add-on from $6.50 per 10K spans. Logfire Personal is free for 10M records and one seat, Team is $49 a month with five seats, Growth is $249 a month with unlimited seats, and extra records cost $2 per million. Compare Datadog's pricing and Logfire's pricing.
Where Prefactor fits
We sell the layer this section describes. Read it with that in mind.
Stated plainly, since Prefactor publishes this page: Prefactor is an agent evaluation platform that scores each step of a run and acts on what it finds through runtime policies on tool calls and data access, approval holds for risky actions and a kill switch for a run, an agent or a team. Datadog's AI Guard, sold separately and in limited availability, can block tool calls; Logfire's gateway covers model calls. Neither documents approval holds. Prefactor is not an APM tool, has no prompt playground or prompt registry, and its platform is hosted. See the full comparison of 15 platforms.
Which one fits
Pick Datadog if
- Your services, hosts and logs already report to Datadog.
- Your agents make many tool calls per model call, so billing only LLM spans helps.
- You want annotation queues and prompt A/B tests today.
- You may need blocking on tool calls and can buy AI Guard separately.
Pick Logfire if
- You do not use Datadog and want one OpenTelemetry platform for the whole application.
- You may need to self-host on Enterprise.
- You want a gateway with guardrails and spend caps in the same product.
- You work in Python or Rust, especially with Pydantic AI.
How we reviewed this comparison
Reviewed against public product and documentation pages on October 20, 2026. If a vendor has changed a feature, product name, or positioning since then, send a correction and we will update it. Numbered source links in the page body point to the ordered sources below.
Sources reviewed
- Datadog pricingChecked 2026-10-20.
- Datadog documentation
- Datadog website
- Logfire pricingChecked 2026-10-20.
- Logfire documentation
- Logfire website
- Prefactor platform
Methodology
- Reviewed public product, documentation, and launch material visible at the time of writing.
- Mapped each page to the primary buyer, control layer, and runtime capabilities each vendor describes publicly.
- Prefer direct product and documentation pages over analyst summaries or reseller material.
What is the difference between Datadog and Logfire for agents?
How does Prefactor compare with Datadog and Logfire?
Can I send traces to Datadog without the Datadog SDK?
Can I self-host Datadog Agent Observability or Logfire?
Can I use pydantic-evals with Datadog?
Is the old Datadog LLM Observability product still available?
Who owns Datadog?
Is Datadog open source?
How much does Datadog cost?
Can Datadog block or hold a live agent action?
Who owns Logfire?
Is Logfire open source?
How much does Logfire cost?
Can Logfire block or hold a live agent action?
Is Prefactor open source?
How much does Prefactor cost?
Can Prefactor block or hold a live agent action?
Score the run, then act on it
Prefactor scores each step of every agent run and can hold or stop an action when a score says it should not happen. Start on the free tier: 5,000 spans a month, no credit card required.
Unified performance platform for agents, authentication, and risk management