"매 error 의 발생 시점 의 call chain 의 snapshot.". 매 runtime 의 active frame 의 list — function name · file · line · 매 local variable (optional). 2026 modern observability 는 매 stack trace 의 distributed trace · source map · symbolication · 매 LLM-assisted root cause 의 통합.
매 핵심
매 구성 요소
Frame: 매 each function call 의 record (caller info).
Top of stack: 매 error 의 throw 한 가장 안쪽 frame.
Bottom: 매 program entry (main, event loop).
Symbolication: 매 minified/compiled binary 의 readable name 의 resolve.
매 종류
Native: 매 Go panic, C++ SIGSEGV — debug symbols 의 필요.
Managed: JVM, .NET, Python — runtime 의 자동 capture.
Async: 매 promise/coroutine — 매 await chain 의 reconstruct (Python 3.11+ exception groups, V8 async stack).
Distributed: 매 trace_id + span 의 across-service stack.
매 응용
매 production error 의 root cause 의 빠르게 locate.
매 performance profiling — 매 sample-based stack 의 hot path 의 reveal.
매 security forensics — 매 exploit 의 entry point 의 identify.
importsentry_sdksentry_sdk.init(dsn="https://...",traces_sample_rate=0.1)sentry_sdk.add_breadcrumb(category="auth",message="user login",level="info")# 매 exception 의 자동 capture + breadcrumb chain
OpenTelemetry — stack 의 distributed trace 의 attach
언제: 매 long stack trace 의 summarize, 매 framework noise 의 filter, 매 likely culprit frame 의 highlight.
언제 X: 매 sensitive PII 의 local variable 의 포함 — sanitize first.
❌ 안티패턴
Swallow exception: except: pass — 매 stack 의 lose.
Re-raise wrong: 매 raise e (Python) 매 traceback 의 truncate — raise bare 의 use.
No source map: 매 prod minified — stack 의 unreadable.
Stack 의 user 의 expose: 매 5xx response 에 raw stack 의 dump — info leak.
Limit too low: Error.stackTraceLimit = 10 매 root frame 의 cut off.