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:
| Signal | Typical APM metric | Formula or unit |
|---|---|---|
| Latency | Response time per endpoint, as percentiles | p50, p95, p99 in milliseconds |
| Traffic | Throughput | Requests per minute |
| Errors | Error rate | Failed requests ÷ total requests |
| Saturation | How full the service is | CPU, 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,ErrororOk). - 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
traceparentHTTP 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⌉):
| Statistic | Calculation | Result |
|---|---|---|
| Mean | Sum 5,118 ÷ 20 | 255.9 ms |
| p50 (median) | Position ⌈0.50 × 20⌉ = 10 | 148 ms |
| p95 | Position ⌈0.95 × 20⌉ = 19 | 820 ms |
| p99 | Position ⌈0.99 × 20⌉ = 20 | 1,450 ms |
| Share slower than 300 ms | 3 of 20 | 15% |
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
| APM | Real user monitoring (RUM) | Synthetic monitoring | |
|---|---|---|---|
| Data source | Agents or SDKs in your servers and services | Script in real visitors' browsers or apps | Scripted checks from robots on a schedule |
| What it sees | Each request inside your back end: spans, queries, external calls | What real users experienced: page load, interaction delay, layout shift, front-end errors | Whether a known path works and how fast, from fixed locations |
| Typical metrics | p95 latency, throughput, error rate, slowest spans | Core Web Vitals at the 75th percentile, time to first byte, JavaScript errors | Uptime, step timings, availability |
| Blind spots | Browser rendering, third-party scripts, network to the user | Which server component caused a slow response | Real devices, real traffic mix, rare paths |
| Answers | Why 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.
- 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.
- 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.
- 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.
- Get notified. In All-platform analytics › Operations › Monitors, a monitor on the built-in
error_rateorerrorsmetric 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
- Google, Site Reliability Engineering, Chapter 6: Monitoring Distributed Systems (the four golden signals).
- OpenTelemetry, Traces (spans, parent IDs, status, context propagation).
- W3C, Trace Context (the
traceparentheader). - web.dev, Web Vitals (thresholds and the 75th percentile).
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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