Skip to content

Commit

Permalink
Fix bad copy-paste mistake (#86)
Browse files Browse the repository at this point in the history
* Fix bad copy-paste mistake

Fix #85
  • Loading branch information
gagbo authored Jan 25, 2024
1 parent 853e2f3 commit 0ad190b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ versioning](https://go.dev/doc/modules/version-numbers).

### Fixed

- [All] Fixes an issue where the caller function name is badly reported as a random slice of the
current function name (#85)

### Security

## [1.0.0](https://github.com/autometrics-dev/autometrics-go/releases/tag/v1.0.0) 2023-12-01
Expand Down
2 changes: 1 addition & 1 deletion pkg/autometrics/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func callerInfo(ctx context.Context) (callInfo CallInfo) {
")", ""),
"*", "")

callInfo.Parent.Function = functionName[index+1:]
callInfo.Parent.Function = parentFrameFunctionName[index+1:]
}

return
Expand Down

0 comments on commit 0ad190b

Please sign in to comment.