Tracing Apps by Using AWS X-Ray

Note: The information in this section is applicable for an app executable only.

If you are running your Flogo app on the cloud or in your local environment, you can track your app performance or troubleshoot issues by using AWS X-Ray. For more information about AWS X-Ray, refer to AWS X-Ray.

When you use AWS X-Ray for tracing, your app sends trace data to AWS X-Ray. X-Ray processes the data to generate a service map and searchable trace summaries. For each flow, subflow, and Activity, details such as execution time are displayed on the AWS X-Ray dashboard.

The following example shows the trace details of the InvokeRest_InvokeLambdaApp-v1.0.0 app. It includes details such as activities that were invoked, and their execution time and status.

Before you begin Make sure that you meet the following requirements:

Enabling Tracing Using AWS X-Ray

To enable tracing using AWS X-Ray, set the FLOGO_AWS_XRAY_ENABLE environment variable to true. The default is false. To enable tracing using AWS X-Ray, add the FLOGO_AWS_XRAY_ENABLE environment variable to Engine variables under Environment controls and then set it to true. The default is false.

Search Using Annotations

You can search based on predefined Flogo annotations. The following annotation is available in this release:

flogo_flow_name: Name of the flow

Here is an example of using annotations to search:

annotation.flogo_flow_name="sampleFlow"

Metadata

The following metadata about an app is stored in the flogo namespace:

This metadata can be used when debugging. You can use the metadata to identify the exact errors, stack traces, flow name, Activity name, and so on. Note that the metadata cannot be used for searching traces.