Support & Maintenance

Application Monitoring and Observability: Logs, Metrics and Traces

Logs, metrics and traces explained, plus OpenTelemetry, alerts people trust, dashboards people use and a simple plan to roll it all out.

  • DivTech editorial team
  • 6 min read
Logs
vs
Metrics
vs
Traces
Support & Maintenance · part 3 of 5

When a user says 'the app is slow', how long does it take your team to find out why? If the honest answer is 'we log in to the server and start reading files', you have a monitoring gap. Good monitoring and observability shorten the time between a problem starting and someone fixing it, and they often catch the problem before any user notices.

This guide explains the building blocks, how to alert without drowning your team in noise, and how to roll it out step by step. Monitoring is a core part of our support and maintenance service, and the same principles apply whether you run it yourself or not.

Monitoring vs observability

Monitoring watches for failure modes you already know about: CPU above a threshold, error rate rising, a health check failing. Observability is the ability to understand what is happening inside a system from the data it emits, including problems nobody predicted, such as 'why are only customers in one region seeing slow checkouts since Tuesday's release?' You need both: monitoring to raise the alarm, observability to find the cause quickly.

The three pillars: logs, metrics and traces

comparisonLogs, metrics and traces compared
LogsWhat happened
  • Timestamped records of individual events
  • Best for the detail behind a single error
  • Write them as structured JSON with a request ID
  • Volume drives cost: set log levels and retention
MetricsHow much, how often
  • Numeric time series such as requests per second or error rate
  • Cheap to store and fast to query
  • The right basis for alerts and trend dashboards
  • Avoid high-cardinality labels such as user IDs
TracesWhere the time went
  • Follow one request across services and databases
  • Show which step is slow or failing
  • Essential once a request crosses several services
  • Usually sampled to control volume

verdictStart with metrics for alerting and structured logs for detail. Add distributed tracing when requests regularly cross more than one service.

DivTech System

Deciding what to measure is easier with an established framework. For request-driven services, use RED: rate, errors and duration. For resources such as servers, queues and databases, use USE: utilisation, saturation and errors. Google's site reliability engineering practice describes four 'golden signals' that combine both views: latency, traffic, errors and saturation. Add a few business metrics, such as orders per minute or sign-ups per hour, because they often reveal problems that technical metrics miss.

Instrumenting with OpenTelemetry

OpenTelemetry is an open-source, vendor-neutral standard for producing and exporting logs, metrics and traces, hosted by the Cloud Native Computing Foundation. It provides APIs and SDKs for most mainstream languages, including those we work with daily such as Node.js, Python, Java and .NET. Automatic instrumentation covers common web frameworks, HTTP clients and database drivers, and the OpenTelemetry Collector receives data and routes it to whichever back end you choose. The main benefit is freedom: you instrument once and can change monitoring tools later without touching application code.

  1. Generate a request or correlation ID at the edge and pass it through every service and log line.
  2. Switch application logs to structured JSON with consistent field names.
  3. Add OpenTelemetry automatic instrumentation to each service.
  4. Deploy a Collector to batch, filter and route data to your back end.
  5. Define a small number of service level objectives (SLOs), such as 'checkout succeeds for 99.9% of requests over 30 days'.

Alerting without noise

Alert fatigue is the most common reason monitoring fails. When a phone buzzes twenty times a night for things that fix themselves, people stop looking, and the one real alert gets missed. Three rules help. Alert on symptoms users feel (errors, latency, failed checkouts) rather than every possible cause. Make every alert actionable, with a short runbook link that says what to check first. Route by urgency: only page a person for problems that need action now; send everything else to a ticket or chat channel. Alerting on how fast you are using up an SLO's error budget, known as burn-rate alerting, is a mature way to apply all three rules.

loopThe incident loop that keeps monitoring useful
repeat
  1. 01Detect

    An alert fires on a user-facing symptom, or a user report comes in.

  2. 02Triage

    On-call checks the service dashboard, confirms impact and sets severity.

  3. 03Mitigate

    Restore service first: roll back, scale up or switch off a feature flag.

  4. 04Learn

    Hold a blameless review, find the root cause, agree action items.

  5. 05Tune

    Fix noisy alerts, add missing signals and update the runbook.

DivTech System

Dashboards people actually use

  • One service overview per service: request rate, error rate and latency percentiles (p50, p95, p99), with deployment markers so changes line up with spikes.
  • A business dashboard: orders, payments, sign-ups or bookings per minute, compared with the same time last week.
  • A dependency view: databases, queues, caches and third-party APIs with their latency and error rates.
  • Infrastructure: CPU, memory, disk and saturation, kept one click away rather than on the front page.

Keep top-level dashboards to a handful of panels. If a dashboard needs scrolling to understand, nobody will read it during an incident.

Choosing monitoring tools

OptionExamplesStrengthsTrade-offs
Open-source stackPrometheus, Grafana, Loki or OpenSearch, Jaeger or TempoNo licence fees, full control, OpenTelemetry-friendlyYou run, scale and upgrade it yourself
Cloud-native servicesAmazon CloudWatch, Azure Monitor, Google Cloud ObservabilityAlready integrated with your cloud, quick to startWeaker across multiple clouds; features vary
Commercial platformsDatadog, New Relic, Dynatrace, Grafana CloudPolished features, little to operateUsage-based bills can grow fast; check how ingestion is priced

There is no universally best choice. Small teams on a single cloud often start with the provider's own tools. Teams with DevOps skills and cost pressure lean toward open source. Regulated products, for example in fintech, should also check where data is stored and how long logs must be retained. Whatever you choose, instrument with OpenTelemetry so the decision stays reversible.

Whichever tool you pick, budget for owning it. Someone must maintain dashboards, review alert rules, manage retention settings and watch the monitoring bill itself. Monitoring that nobody owns decays quietly until the day it is needed.

A practical rollout plan

Week one: external uptime checks on key pages and APIs, plus alerts for error rate and latency on the most important user journey. Weeks two and three: structured logs with request IDs, and a service overview dashboard per service. Weeks four to six: OpenTelemetry tracing, SLOs for two or three critical journeys, and runbooks for every paging alert. Then review monthly. The same data feeds your support SLA uptime reports and shows which components generate the most technical debt. It also gives you an honest measure of time to restore service, one of the DORA metrics.

If you want help setting up monitoring that your team will trust, our DevOps consulting and support engineers at DivTech can design and run it with you. Get a quote and tell us about your stack.

Frequently asked questions

What is the difference between monitoring and observability?

Monitoring checks for known failure conditions and raises alerts. Observability is the ability to understand a system's internal state from its logs, metrics and traces, so you can investigate problems nobody anticipated.

Do small applications need distributed tracing?

Not always. A single application with one database can usually be diagnosed with metrics and structured logs. Tracing becomes valuable once requests pass through several services, queues or external APIs.

Why use OpenTelemetry instead of a vendor agent?

OpenTelemetry is vendor-neutral, so you instrument your code once and can send the data to any compatible back end. Changing tools later does not require changing application code.

How many alerts should a team have?

There is no fixed number, but every paging alert should be actionable and linked to a runbook. If an alert regularly fires without anyone taking action, remove it or downgrade it to a ticket.

  • Monitoring
  • Observability
  • OpenTelemetry
  • DevOps

free consultation

Need help with support & maintenance?

Talk to our Support & Maintenance team. We'll review your situation and suggest a practical next step, free.