Decide When to Use Datadog APM and AWS X-Ray

Which one should you use?

Overview

X-Ray is natively integrated and can be enabled in just a few steps, making it convenient for basic observability needs. It’s a good fit for teams troubleshooting simple workflows or visualizing service dependencies in low-complexity environments. However, it doesn’t capture Lambda payloads and trace data is restricted to what AWS surfaces.

Datadog APM offers deeper visibility than X-Ray. You can enrich traces with business or user context, follow async workflows across services, and capture payloads at every step. It supports custom sampling and retention, letting you dial down ingestion on noisy paths while retaining critical traces longer. This level of control is especially useful for scaling systems and debugging edge cases that are hard to reproduce.

Feature Comparison

CapabilityAWS X-RayDatadog APM LambdaDatadog APM Step Functions
Enhanced MetricsLimited CloudWatch metricsNumerous real-time metricsDetailed metrics for each step execution
Trace → Log CorrelationNoneAutomatic supportAutomatic support
Sampling & RetentionAWS-managedUser-definedUser-defined
Distributed TracingPrimitive subsegments, limited cross-service visibilitySupport through hybrid environmentsFull support across Step Functions and Lambda, including other Step Functions
Payload VisibilityNoneCollect, visualize, and query the JSON request and response payloadsCapture and visualize input and output data at each step
IntegrationsLimited to core AWS servicesComprehensive support for AWS & 3rd party servicesSupport for all Task types with relevant tags
Distributed MapsNoneN/AFull support for distributed maps

Get Started

Enable Datadog Monitoring

If you need the enhanced capabilities that Datadog APM provides, follow these setup guides:

Enable AWS X-Ray Integration

If AWS X-Ray meets your current requirements, see the AWS X-Ray Integration documentation for detailed setup instructions.

PREVIEWING: avedmala/xray