IT lexicon › Programming › Stack trace

Stack trace

Programming På svenska → Updated: 2026-11-14

A printout of the function call stack at a given moment—showing which functions called which others when an error happened.

When a program crashes, the first clue is its stack trace: which file, line, and function the error occurred in, and the chain of calls that led there. In distributed systems, exceptions often occur on a server and get logged or sent to an error tracking service. Multi-layer traces in microservice architectures show the call path through multiple processes and services—that's distributed tracing.

Stack traces are cheap to generate and should always be included in error logs. They're the first thing an on-call engineer looks for when woken up.

← Back to the lexicon