Analyzer go-excep-fgraph
Name
go-excep-fgraph - Go-Land Exception Flame Graph
This analyzer captures and visualizes panic and error handling paths in Go applications. It generates flame graphs showing the call stacks where panics occur or errors are generated, helping developers identify error-prone code sections and understand exception propagation patterns. The analyzer is valuable for improving error handling strategies and application reliability.
Resource Category
CPU.
Application Type & Technical Stack
- Go
Command Line Syntax
The analyzer can be invoked directly on the command-line via the orxray
utility from the openresty-xray-cli software package.
Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).
# PID is the target process PID.
orxray analyzer run go-excep-fgraph -p PID
# trace a shell command directly
orxray analyzer run go-excep-fgraph -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run go-excep-fgraph -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run go-excep-fgraph --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Flame Graphs
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.