TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Application performance monitoring (APM): definition and APM vs RUM

Application performance monitoring measures how requests perform inside your servers and services, using metrics and distributed traces. Core metrics, traces and spans, a p50 vs p95 example, and how APM differs from RUM and synthetic monitoring.

Chen Yu Reviewed by Xu An Also called APM Last updated Nov 29, 2026 Glossary

Quick answer

Application performance monitoring (APM) instruments an application's services to measure request latency, throughput and error rate on the server side, with distributed traces showing which service, query or call made a request slow. Browser-side experience is measured by RUM.

Formula: Error rate = failed requests ÷ total requests; throughput = requests per minute; p95 latency = 95th percentile of response times

What is application performance monitoring (APM)?

Application performance monitoring (APM) is the practice of instrumenting an application's code and services to measure how requests perform inside them: how long each request takes, how many arrive, how many fail, and which part of the code, database or downstream service caused a slowdown. The core data is server-side: request metrics plus distributed traces that follow one request across services.

APM answers questions such as "why did the checkout API get slow at 14:05?" or "which database query makes up most of the p95 latency?" It does not, by itself, tell you how fast the page felt in a visitor's browser on a mid-range phone. That is the job of real user monitoring (RUM). The two are complementary, and the difference between them is the most useful thing to understand about APM.

The acronym is also expanded as application performance management, the broader discipline of acting on the data. In everyday use the two mean the same tools.

What APM measures: the core metrics

Google's Site Reliability Engineering book names four "golden signals" for monitoring a user-facing system. APM tools centre on the first three and usually show the fourth:

SignalTypical APM metricFormula or unit
LatencyResponse time per endpoint, as percentilesp50, p95, p99 in milliseconds
TrafficThroughputRequests per minute
ErrorsError rateFailed requests ÷ total requests
SaturationHow full the service isCPU, memory, connection pool or queue use

Two rules from the same chapter matter in practice. First, measure latency as a distribution, not an average: a mean can hide a slow tail. Second, separate the latency of failed requests from successful ones, because fast errors pull the average down and make a broken service look quick.

Sample data for the error and traffic lines: 12,000 requests in 10 minutes is a throughput of 1,200 requests per minute; if 84 of them returned a server error, the error rate is 84 ÷ 12,000 = 0.7%.

Traces and spans

The feature that separates APM from simple uptime checks is the trace.

  • A trace is the full path of one request through the system, for example from the API gateway through an order service to a payment provider and a database.
  • A span is one unit of work within it, such as a single database query or an outbound HTTP call. OpenTelemetry defines each span with a name, a parent span ID (empty for the root span), start and end timestamps and a status (Unset, Error or Ok).
  • Context propagation carries the trace ID from one service to the next, so spans recorded on different machines can be assembled into one trace. On the web, the W3C Trace Context standard does this with the traceparent HTTP header.

With traces, "the checkout is slow" becomes "the checkout is slow because the tax-service span takes 900 ms when its cache misses".

Worked example: p50 vs p95 vs mean

Sample data: 20 response times, in milliseconds, for one endpoint, sorted:

112, 118, 121, 125, 128, 131, 135, 140, 142, 148, 151, 156, 160, 167, 175, 189, 210, 340, 820, 1,450

Using the nearest-rank method (the p-th percentile is the value at position ⌈p/100 × n⌉):

StatisticCalculationResult
MeanSum 5,118 ÷ 20255.9 ms
p50 (median)Position ⌈0.50 × 20⌉ = 10148 ms
p95Position ⌈0.95 × 20⌉ = 19820 ms
p99Position ⌈0.99 × 20⌉ = 201,450 ms
Share slower than 300 ms3 of 2015%

Recomputed in Python. The mean of 256 ms describes no real request: most requests take about 150 ms, and three take far longer. An alert on the mean would miss the tail that about one request in seven actually experiences. This is why APM dashboards show p95 or p99 by default, and why a 95th percentile threshold is a common service-level objective.

APM vs RUM vs synthetic monitoring

APMReal user monitoring (RUM)Synthetic monitoring
Data sourceAgents or SDKs in your servers and servicesScript in real visitors' browsers or appsScripted checks from robots on a schedule
What it seesEach request inside your back end: spans, queries, external callsWhat real users experienced: page load, interaction delay, layout shift, front-end errorsWhether a known path works and how fast, from fixed locations
Typical metricsp95 latency, throughput, error rate, slowest spansCore Web Vitals at the 75th percentile, time to first byte, JavaScript errorsUptime, step timings, availability
Blind spotsBrowser rendering, third-party scripts, network to the userWhich server component caused a slow responseReal devices, real traffic mix, rare paths
AnswersWhy is the server slow?How slow did it feel, for whom?Is it up right now, even at 3 a.m.?

Web.dev recommends judging Core Web Vitals at the 75th percentile of page loads, segmented by mobile and desktop, with "good" thresholds of 2.5 s for Largest Contentful Paint, 200 ms for Interaction to Next Paint and 0.1 for Cumulative Layout Shift. Those are RUM numbers; an APM tool does not produce them.

Why front-end monitoring alone is not APM

A RUM tool can show that time to first byte rose from 300 ms to 1.2 s on the product pages. That tells you the server or network is slow, not which query, cache or external call caused it. Use these rules to decide what you need:

  • If users complain and server metrics look fine, then start with RUM: the problem is probably in the browser, a third-party script or the network.
  • If RUM shows high time to first byte on specific pages, then you need APM traces for those endpoints to find the slow span.
  • If you need to know a path works when no users are around, then add synthetic checks.
  • If you report a user-satisfaction score from response times, Apdex can sit on top of either APM or RUM data; define which one.

Common mistakes

  • Alerting on averages. Use p95 or p99 with a minimum request count.
  • Mixing error and success latency. Report them separately.
  • Counting only HTTP 5xx as errors. A 200 response with an empty cart because a dependency timed out is also a failure; define errors by policy.
  • Instrumenting one service only. Without context propagation, traces stop at the first boundary.
  • Calling front-end monitoring APM. It answers a different question.

Front-end performance in TapCub

TapCub covers the browser side of the picture, the RUM column of the table above. It does not do server-side tracing or APM.

  1. See what visitors experienced. Monitoring › Performance reports largest contentful paint, interaction to next paint, cumulative layout shift, first contentful paint and time to first byte from real loads. Cards switch between P95, P75, median and average, and a breakdown by page, country, device, browser and operating system shows where it is slow.
  2. Spot a back-end problem from the front. The load-timing split divides one load into backend (time to first byte), network transfer and frontend render. A rising backend share on one page is the signal to open your APM traces for that endpoint.
  3. Track front-end errors. Monitoring › Errors shows error count, error rate (errors ÷ pageviews), affected visitors and affected sessions, with each error group marked Active, Resolved or Ignored.
  4. Get notified. In All-platform analytics › Operations › Monitors, a monitor on the built-in error_rate or errors metric checks hourly, daily, weekly or monthly and notifies by email, WeCom, DingTalk, Feishu or webhook.

TapCub has no Apdex metric and no server-side traces; pair it with an APM tool for the back end.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is the difference between APM and RUM?

APM measures what happens inside your back end: request latency, throughput, errors and traces across services. Real user monitoring (RUM) measures what visitors experienced in their browsers: page load, interaction delay, layout shift and front-end errors. RUM shows that something is slow for users; APM shows which server component caused it.

What metrics does APM track?

Mainly latency as percentiles (p50, p95, p99), throughput in requests per minute, and error rate (failed requests ÷ total requests), plus saturation such as CPU, memory or queue use. Distributed traces add the time spent in each span, such as a database query or external call.

Why use p95 latency instead of the average?

Averages hide slow tails. In this article's sample of 20 response times, the mean is 256 ms, the median 148 ms and the p95 820 ms; three requests in twenty took over 300 ms. Alerting on p95 or p99 catches the slow requests users actually notice.

Is synthetic monitoring part of APM?

It is usually a separate practice, though many tools bundle it. Synthetic monitoring runs scripted checks from fixed locations on a schedule to confirm a path works and how fast, even with no real traffic. APM instruments real requests inside your services.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics