Softwr

Testing · head to head

Datadog APM vs pytest

Datadog APM logo

Datadog APM

Testing

Per-host distributed tracing and continuous profiling inside the Datadog platform

From
$31/month
Free plan
No
pytest logo

pytest

Testing

Python testing framework maintained by an independent core team funded partly through Tidelift

From
Free
Free plan
Yes

The short version

  • pytest is free; Datadog APM starts at $31/mo.
  • Only Datadog APM lists distributed tracing; only pytest lists assert-based test syntax.
  • Where Datadog APM falls short: billing is per APM host with span allotments, so an autoscaling cluster that spikes in size produces a bill that is hard to forecast.

How do Datadog APM and pytest differ?

Datadog APM and pytest differ on starting price ($31/month against Free), pricing model and free tier (No against Yes). Only the attributes on which Datadog APM and pytest actually diverge.

Attributes where Datadog APM and pytest differ
AttributeDatadog APMpytest
Starting price$31/monthFree
Pricing modelPer APM host per monthOpen source, no licence fee
Free tierNoYes
PlatformsWeb, Linux, Windows, macOSLinux, macOS, Windows

Not yet recorded: category for Datadog APM, founded for Datadog APM.

Which features does each one have?

They share no listed features; 6 appear only for Datadog APM and 6 only for pytest. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Datadog APM

  • Distributed tracing
  • Trace retention filters
  • Continuous Profiler
  • Data Streams Monitoring
  • Dynamic Instrumentation
  • Cross-product correlation

Only in pytest

  • Assert-based test syntax
  • Fixture system
  • Parametrised testing
  • Plugin ecosystem
  • Detailed assertion introspection
  • Test discovery

What is each one used for?

Datadog APM is most often brought in for comparing CPU and memory profiles across deployments to cut cloud compute spend. The jobs each tool is most often brought in to do.

Datadog APM

  • Finding the slow service in a microservice request path that already reports metrics to Datadognot pytest
  • Comparing CPU and memory profiles across deployments to cut cloud compute spendnot pytest
  • Tracing message latency and consumer lag across Kafka or SQS pipelinesnot pytest
  • Linking a failing trace to the exact log lines and host metrics in one viewnot pytest

pytest

  • A Python team moving off the standard library's unittest module for a less verbose, fixture-driven testing stylenot Datadog APM
  • A project needing parametrised tests to cover many input combinations without duplicating test codenot Datadog APM
  • A team wanting a large plugin ecosystem for coverage, async testing or Django-specific test supportnot Datadog APM
  • An organisation wanting a commercial support and maintenance assurance layer via a Tidelift subscription rather than relying purely on community response timesnot Datadog APM

Where do Datadog APM and pytest fall short?

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Datadog APM

  • Billing is per APM host with span allotments, so an autoscaling cluster that spikes in size produces a bill that is hard to forecast
  • The published APM rates assume Infrastructure monitoring is attached, so the true cost of tracing includes a separate per-host Infrastructure licence
  • Spans above the included ingestion and indexed-span allotments are billed separately, which penalises high-throughput services with verbose traces
  • Profiling and Data Streams Monitoring are locked to the higher tiers, so getting code-level insight costs roughly 30 percent more per host than basic tracing
  • It is tightly coupled to the Datadog agent and platform, so moving to another vendor later means re-instrumenting dashboards, monitors and retention rules

pytest

  • There is no corporate owner or dedicated support organisation, so response time on bugs or security issues depends on volunteer maintainer availability unless a Tidelift subscription is purchased separately
  • The plugin ecosystem's quality and maintenance level varies widely between plugins, and a team building a workflow around several plugins takes on the risk of any one of them going unmaintained
  • Its assert-rewriting magic, while convenient, can behave unexpectedly in edge cases involving custom assert helpers, which occasionally confuses developers used to explicit assertion methods
  • Large test suites with many fixtures can develop hard-to-trace fixture dependency chains, since fixtures can depend on other fixtures in ways that are not always obvious from a single test file
  • Being free and volunteer-maintained, roadmap direction is set by contributor consensus rather than a company with commercial incentive to prioritise enterprise-requested features quickly

How much do Datadog APM and pytest cost?

Datadog APM starts at $31/mo; pytest is free to use. Plan by plan below, from each vendor's own pricing page.

Datadog APM

$31/month
  • APM$31/mo
    • $31 per host per month billed annually, with Infrastructure monitoring attached ($36 on-demand)
    • Distributed tracing and service dependency mapping
    • 15-day historical trace search
  • APM Pro$35/mo
    • $35 per host per month billed annually ($42 on-demand with Infrastructure attached)
    • Everything in APM
    • Data Streams Monitoring
  • APM Enterprise$40/mo
    • $40 per host per month billed annually ($48 on-demand with Infrastructure attached)
    • Everything in APM Pro
    • Continuous Profiler

pytest

Free
  • pytestFree
    • Full functionality, no usage limits
    • Community support via GitHub
    • Optional Tidelift subscription for a commercial support and licence assurance layer

Which should you pick?

Choose Datadog APM if

  • You need distributed tracing.
  • You work on Web, Linux, Windows, macOS.
  • You also want trace retention filters.

Choose pytest if

  • You need assert-based test syntax.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want fixture system.

Questions people ask

Is Datadog APM or pytest better?
It depends on the job. Datadog APM fits finding the slow service in a microservice request path that already reports metrics to Datadog; pytest fits a Python team moving off the standard library's unittest module for a less verbose, fixture-driven testing style. Datadog APM starts at $31/month and pytest at Free.
Which is cheaper, Datadog APM or pytest?
pytest has a free tier; the other does not. Paid plans start at $31/month for Datadog APM and Free for pytest.
Does Datadog APM or pytest run on more platforms?
Datadog APM runs on Web, Linux, Windows, macOS. pytest runs on Linux, macOS, Windows.
Can I use pytest for free?
Yes. pytest has a free tier, so you can try it without paying. Datadog APM starts at $31/month.
What is Datadog APM best used for?
Datadog APM is most often used for finding the slow service in a microservice request path that already reports metrics to datadog, comparing cpu and memory profiles across deployments to cut cloud compute spend, tracing message latency and consumer lag across kafka or sqs pipelines, linking a failing trace to the exact log lines and host metrics in one view. Of those, finding the slow service in a microservice request path that already reports metrics to datadog and comparing cpu and memory profiles across deployments to cut cloud compute spend are not what pytest is typically brought in for.
What can Datadog APM do that pytest cannot?
Datadog APM covers Distributed tracing, Trace retention filters, Continuous Profiler, Data Streams Monitoring. pytest covers Assert-based test syntax, Fixture system, Parametrised testing, Plugin ecosystem.

Answered from the vendors’ own pages

Datadog APM: How much does Datadog APM cost?

Datadog lists APM at $31 per host per month billed annually, APM Pro at $35 and APM Enterprise at $40, with Infrastructure monitoring attached. On-demand rates are higher, at $36, $42 and $48.

pytest: Is pytest owned by a company?

No, it is maintained by the pytest-dev volunteer community with no single corporate parent; some maintainers receive partial funding through Tidelift subscriptions.

Datadog APM: Does Datadog APM work with OpenTelemetry?

Yes, Datadog ingests OpenTelemetry traces. It also sells OTLP APM Ingest as a separate priced product for teams sending OTLP data.

pytest: Is there a paid version?

No, pytest itself is free and open source; buyers can optionally pay for a Tidelift subscription for commercial assurance and support.

Datadog APM: What is the difference between Datadog APM and Datadog Infrastructure?

Infrastructure monitors hosts, containers and cloud services with metrics. APM adds request traces, service maps and profiling, and is licensed per APM host on top of Infrastructure.

pytest: Does it replace the standard library unittest module?

It does not replace unittest at the language level, but it is now the de facto standard choice for most Python projects over unittest's more verbose syntax.

Datadog APM: Can I buy APM without Infrastructure monitoring?

Datadog quotes the lowest APM rates with Infrastructure attached; without it the on-demand rate listed on its pricing page applies, so check the quote before committing.

Share

Related pages

Other head to heads