Application Performance Monitoring

Estimated Reading Time:  5 minutes

Overview

Application Performance Monitoring (APM) continuously monitors Unqork application performance and availability by analyzing various metrics. APM lets you continuously detect and resolve issues before they impact an end-user's End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product. or business' processes. That way, you can minimize downtime and optimize performance.

As part of our first release, we are integrating with Datadog and Splunk. They are the leading solutions providers, letting us monitor Unqork servers. Using Datadog or Splunk, Unqork can provide near real-time trace and span telemetry related to module, workflow, and component executions. You can use this telemetry to give you insight into an application’s performance.

Unqork trace and span data is intended to integrate with your provider account so you can aggregate all observability data in one place. To enable APM in your environment, submit a request ticket at support.unqork.com. The Unqork support team will provide guidance on next steps.

IMPORTANT  Depending on the amount of data, number of users and applications, frequency of use, and application complexity, additional costs might be required.

What You'll Learn

In this article, you'll learn about retrieving traces and gathering performance insights using Datadog and Splunk.

TIP  This article is intended to be a quick reference guide to help you set up Datadog or Splunk integration. Click the relevant tab below to view that specific documentation.

 

Datadog APM Integration

With Datadog APM integration, you can use telemetry to create metrics, alerts, and dashboards about an application’s performance. You can also use custom facets to create filters where application context is available—for example, moduleId. The images below are a typical example of creating a facet for a specified module ID(s).

Creating a Facet:

A static image displaying how to create a module ID facet.

Module ID Facet:

A static image displaying the module ID facet.

Viewing a Trace

Traces are a collection of correlated spans or structured logs that provide a high-level view of what occurs when an application request is made. You can access traces from the APM drop-down in the side menu of your Datadog account.

A static image displaying the Traces option for the Datadog side menu.

Let's use the image below as an example to better explain a Datadog trace. In this image, you can see the spans that describe a workflow execution in an Unqork application. The image displays the child processes that occur as part of the parent process. The execution starts with the startNewSubmission parent operation. As part of the parent, the executeCurrentWorkflowStep child operations run. Then, the parent process ends.

A static image displaying the individual spans of a trace.

Viewing a Span

Let's look deeper into one of the executeCurrentWorkflowStep spans to understand what happened during the workflow execution.

In the image to the right, we can see detailed information about the execution step. From the Datadog tags, we get insight about the application that was executed and where the data exists in Datadog.

The following table highlights some of the most important information:

Element

Description

applicationId

The application's unique identifier.

currentState

The name of the workflow step.

otel.trace_id

The trace's unique identifier.

userId

The user that executed the workflow step.

A static image displaying the specific data for an example span.

Building Custom Metrics

Now that you have your trace, you can build a custom metric to filter by a specified query. In this example, we'll query based on a specific Unqork environment and application ID. The following example returns information for an application ID in the specified Unqork environment.

To create a custom metric:

1. Open your browser and click the following link: https://app.datadoghq.com/apm/traces/generate-metrics.
2. To log in, enter your Datadog username and password credentials.
3. Click New Metric.
4. In the Set Metric Name field, enter a name for your metric. In this example, we entered myApplication.duration.
5. In the Define Query field, enter one or more queries. For this example, we'll enter env:qa35-staging and @applicationId:64bfdf76ba2dfef968535d75.
6. Click Create Metric.

Once created, you can use this metric to configure dynamic charts in a dashboard to visualize the performance of your applications.

A static image displaying how to build a custom metric.