Technology Blog Posts by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
FlorianOkos
Product and Topic Expert
Product and Topic Expert
2,162

Dear SAP Community,

within this blog I would like to describe the general setup of SAP Advanced Event Mesh Distributed Tracing. Another blog will follow soon how to configure and how to navigate within Datadog.

 

Distributed Tracing Motivation

In larger organizations applications consist of hundreds or thousands of services running across many hosts, and sharing messages over one or more event meshes.It is no longer possible to diagnose problems simply by troubleshooting an error message or looking at a log. You need a solution that can track an event all the way from the sending application, between event brokers, and to the receiving application.

Distributed tracing provides this ability, allowing an administrator to trace the lifecycle of an event as it travels through the event mesh.

All broker tiers in the Standard Plan will have Distributed Tracing included.

 

Configuration of Distributed Tracing in SAP AEM

What are the required configuration steps:

Enable the Tracing Destination

  • Go to User & Account
  • Open the tab Distributed Tracing
  • Click Create Tracing Destination

Bildschirmfoto 2024-07-30 um 11.02.09.png

 

  • Provide a meaningful name to that destination and select the type you would like to use.

Bildschirmfoto 2024-07-30 um 11.01.37.png

 

Per Default ( with almost no additional configuration) it is AEM Insights.

If you would like to use another Open Telemetry Platform or another Datadog system please select the corresponding Destination Type. For this blog we use the Default setup

  • Click “Create”.

 

Configure the Message Broker

Access the Message Broker you would like to include into Distributed Tracing.

In the menu

  • Navigate to Messaging > Telemetry > Settings
  • Enable Trace and Receiver
  • Save the settings

Bildschirmfoto 2024-07-30 um 11.00.40.png

 

In the same menu

  • Navigate to Messaging > Telemetry > TraceFilters
  • Click on “create” Trace Filters
  • Add the a Trace Filter Name (representative name)  which will act as a "subscription collector":

    EnableTraces.png 

  • In my case I used "MySalesOrderTraces” and enabled the trace.

Once done you need to add the subscriptions to the Trace filter

  • Navigate to Messaging > Telemetry > access your Trace Filter > Subscriptions
  • Click on “+ Subscriptions”  and define the topic which should be subscribed

Bildschirmfoto 2024-07-30 um 10.58.22.png

  • In my case I used "sap.com/salesorder/create/>” and the SNF protocol
  • Click on "Create"

Now the message broker itself is configured and needs to be enabled.

AddSubscription.png

Enable the Message Broker

Access the Message Broker you would like to include into Distributed Tracing.

In the menu

  • Navigate to Manage > Distributed Tracing
  • Click on “Enable”

EnableBroker.png

The Message Broker will register itself top the underlying Tracing Destination. This setup can take some seconds.

  • Once enabled the system allows you to deploy the configuration from the step Configure the Message Broker (step before), therefore click on Deploy Configuration. 

Deploay.png

  • You will get a summary of the planned deployment and can confirm it, therefore click on Confirm and Deploy. 

Summary.png

The Message Broker will register itself top the underlying Tracing Destination. This setup can take some seconds.

Final.png

In case of no errors, you will get a confirmation that tracing has been configured.

  • Collector is running.
  • Connection to the service is active.

 

Find more details links here:

https://help.pubsub.em.services.cloud.sap/Features/Distributed-Tracing/Distributed-Tracing-Receiver....

https://help.pubsub.em.services.cloud.sap/Cloud/enable-dt-for-cloud.htm