We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 853e2f3 commit 0ad190bCopy full SHA for 0ad190b
CHANGELOG.md
@@ -18,6 +18,9 @@ versioning](https://go.dev/doc/modules/version-numbers).
18
19
### Fixed
20
21
+- [All] Fixes an issue where the caller function name is badly reported as a random slice of the
22
+ current function name (#85)
23
+
24
### Security
25
26
## [1.0.0](https://github.com/autometrics-dev/autometrics-go/releases/tag/v1.0.0) 2023-12-01
pkg/autometrics/instrument.go
@@ -66,7 +66,7 @@ func callerInfo(ctx context.Context) (callInfo CallInfo) {
66
")", ""),
67
"*", "")
68
69
- callInfo.Parent.Function = functionName[index+1:]
+ callInfo.Parent.Function = parentFrameFunctionName[index+1:]
70
}
71
72
return
0 commit comments