APM Setup: Application Performance Monitoring

Effective APM setup combines performance monitoring with request tracing to provide full observability. Imagine your site is slow, users complain, and you can't figure out why. Standard server logs and metrics don't show which SQL query is taking 3 seconds or which controller hangs for 2 seconds. AP

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1285
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1241
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    982
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1033
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1104
  • image_website-_0.webp
    Website development for Red Pear
    554

Effective APM setup combines performance monitoring with request tracing to provide full observability. Imagine your site is slow, users complain, and you can't figure out why. Standard server logs and metrics don't show which SQL query is taking 3 seconds or which controller hangs for 2 seconds. APM (Application Performance Monitoring) solves this by tracking performance at the code level. On a Laravel project, we found a slow query to the orders table taking 3.2 seconds due to a missing index. APM showed this within 5 minutes of installation. We set up APM so you see the whole picture, from HTTP request to database response. APM answers: which endpoint is the slowest? which function is CPU-intensive? where is the memory leak? With APM you don't guess — you know. Our experience includes implementation for 20+ projects with load up to 1 million requests per day — 5+ years on the market.

Problems APM solves

  • Slow SQL queries. One unoptimized query can add seconds to response time. APM shows the full call stack and execution time for each query.
  • N+1 ORM queries. A typical Laravel/Django problem: iterating over a collection generates hundreds of database queries. Traces reveal this instantly.
  • Code bottlenecks. Flamegraph profiling shows which function consumes the most CPU or memory.
  • Errors and exceptions. APM automatically collects stack traces and links them to specific requests.

Request tracing mechanics

Each incoming HTTP request gets a unique trace ID. At every stage — controller, service, ORM, SQL, Redis — spans are created. Spans contain start time, duration, status, and attributes (e.g., SQL text). All spans are combined into a trace visualized as a waterfall diagram. We use sampling (10–20% of requests) to avoid overloading production. OpenTelemetry handles distributed context propagation via W3C Trace Context, ensuring traces cross service boundaries.

Key SLO metrics for objective assessment

Metric Target Description
p95 latency < 500 ms Response time for 95% of requests
Error rate < 0.1% Share of requests with errors
Apdex > 0.95 Share of fast requests

These SLO metrics help objectively evaluate how the application handles load. APM is 10 times more effective than manual log analysis for pinpointing issues, and it saves up to $15,000 annually in reduced debugging downtime.

Why OpenTelemetry is the best choice?

As stated by the OpenTelemetry documentation, it is a vendor-neutral standard for collecting traces and metrics. One SDK sends data to any APM system: Jaeger, Zipkin, Datadog, New Relic, Grafana Tempo. You are not tied to a single vendor and can change backends without rewriting code.

PHP integration example (click to expand)
// bootstrap/telemetry.php use OpenTelemetry\API\Globals; use OpenTelemetry\SDK\Trace\TracerProviderFactory; use OpenTelemetry\Contrib\Otlp\OtlpHttpSpanExporter; $exporter = OtlpHttpSpanExporter::fromConnectionString( 'http://otel-collector:4318', 'myapp', '1.0.0' ); $tracerProvider = (new TracerProviderFactory())->create($exporter); Globals::registerInitializer(fn() => $tracerProvider); 

We connect a middleware for tracing HTTP requests and listeners for SQL queries. All this works without changing business logic.

TypeScript integration example (click to expand)
import { NodeSDK } from '@opentelemetry/sdk-node'; import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'; import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node'; const sdk = new NodeSDK({ resource: new Resource({ 'service.name': 'myapp-api', 'service.version': process.env.APP_VERSION || '1.0.0', }), traceExporter: new OTLPTraceExporter({ url: 'http://otel-collector:4318/v1/traces', }), instrumentations: [getNodeAutoInstrumentations({ '@opentelemetry/instrumentation-express': { enabled: true }, '@opentelemetry/instrumentation-pg': { enabled: true }, '@opentelemetry/instrumentation-redis': { enabled: true }, })], }); sdk.start(); 

We guarantee that instrumentation does not affect production performance — we use sampling (e.g., 10% of requests) and can configure tail-based sampling for error-focused capture.

What is included in APM setup? (Deliverables)

  1. Infrastructure analysis — identify data collection points: HTTP, SQL, Redis, queues.
  2. OpenTelemetry SDK installation — configure for your stack (PHP, Node.js, Python, Go).
  3. Backend integration — connect Grafana Tempo, Sentry Performance, or another tool.
  4. Dashboard creation — visualize latency, error rate, Apdex, SLO. Access to dashboards provided.
  5. Alert configuration — notifications when thresholds are exceeded (p95 > 1 s, error rate > 1%).
  6. Documentation — describe the collection architecture and provide instructions for the team.
  7. Team training — hands-on session on interpreting traces and using dashboards.
  8. Ongoing support — one month of post-implementation assistance.

Implementation timeline

Task Duration
Sentry Performance (quick start) 0.5 day
OpenTelemetry + Grafana Tempo (self-hosted) 3–4 days
Datadog/New Relic APM 1–2 days
Full instrumentation (HTTP + DB + Redis + queues) 2–3 days
SLO dashboards and alerts +1–2 days

Cost is calculated individually based on complexity. A typical project investment starts at $2,000 and can save up to $15,000 annually in reduced debugging downtime. We evaluate your project free of charge.

Why should you implement APM?

Without APM, you spend hours finding bottlenecks. With it, you get ready dashboards and alerts in a couple of days. APM is 10 times more effective than manual log analysis for pinpointing issues. Our implementation experience includes high-load projects (millions of requests per day). We guarantee transparent setup with no changes to business logic. APM pays for itself by reducing debugging time and improving application stability.

Contact us for a project assessment. Order turnkey APM setup — get full control over performance. Get a consultation on APM setup for your project — we will assess the complexity and propose the optimal solution.