Datadog Mule Integration 4 APM

Step by Step Tracing

Step by step tracing

The Marketing APIs are an API-led solution to send an SMS by retrieving the contact number from a database and sending the SMS via Twilio. Every event is tracked in Datadog with the correlationId which is shared across all applications.

Marketing API diagram

Sections:

 

Prerequisites:

  • Mule 4.1.1 and above
  • Datadog APM Connector as an asset in your company's Anypoint Platform Exchange (for access contact IO Connect Services)
  • Anypoint Studio 7

 

 

Goals

These example APIs have 2 goals:

  1. To showcase a marketing API that sends SMS to users by fetching contact details from a database, utilizing mock calls for demonstration.

  2. To illustrate Datadog's capability in tracking API events with a correlation ID, ensuring traceability across all operations.

 

 

Results

Following the setup and execution guidelines will display API activities on Datadog's APM Traces page, including error scenarios identified by correlation IDs.

Please find in the below image, traces for an error scenario tracked by a correlation ID.

see the produced traces

Each event in the Mule flow produces log entries that are correlated to the span in the APM trace. Below, you can see that an error log is associated with a failed span.

Correlated log

 


 

 

PREVIOUS TOPIC


< Logs Forwarding