You are troubleshooting an Azure Function that intermittently throws exceptions. You have enabled Application Insights. You need to capture the exact line of code that caused the exception, even for exceptions that occur during high load. Which feature should you use?
Trap 1: Application Insights Profiler
Incorrect. Profiler traces performance of requests but does not capture exception context or source code lines for errors.
Trap 2: Live Metrics Stream
Incorrect. Live Metrics shows real-time performance data but does not capture detailed exception snapshots.
Trap 3: SQL Insights
Incorrect. SQL Insights is for monitoring database queries, not application exceptions.
- A
Snapshot Debugger
Correct. Snapshot Debugger automatically collects debug snapshots on exceptions, providing the call stack and local variables at the moment of failure.
- B
Application Insights Profiler
Why wrong: Incorrect. Profiler traces performance of requests but does not capture exception context or source code lines for errors.
- C
Live Metrics Stream
Why wrong: Incorrect. Live Metrics shows real-time performance data but does not capture detailed exception snapshots.
- D
SQL Insights
Why wrong: Incorrect. SQL Insights is for monitoring database queries, not application exceptions.