Skip to content

Commit 0ad190b

Browse files
authored
Fix bad copy-paste mistake (#86)
* Fix bad copy-paste mistake Fix #85
1 parent 853e2f3 commit 0ad190b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ versioning](https://go.dev/doc/modules/version-numbers).
1818

1919
### Fixed
2020

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+
2124
### Security
2225

2326
## [1.0.0](https://github.com/autometrics-dev/autometrics-go/releases/tag/v1.0.0) 2023-12-01

Diff for: pkg/autometrics/instrument.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func callerInfo(ctx context.Context) (callInfo CallInfo) {
6666
")", ""),
6767
"*", "")
6868

69-
callInfo.Parent.Function = functionName[index+1:]
69+
callInfo.Parent.Function = parentFrameFunctionName[index+1:]
7070
}
7171

7272
return

0 commit comments

Comments
 (0)