stacktrace

package
v0.0.0-...-805f319 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	File string
	Line int
	Func string
}

Frame 表示一次栈帧解析结果

func FindFinalCaller

func FindFinalCaller(stack string) (Frame, bool)

FindFinalCaller 从 zap 的 entry.Stack 文本中,解析“最终业务调用方”的文件与行号 策略:自顶向下解析,优先选择第一条项目代码帧,过滤第三方库/标准库/框架中间件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL