Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad copy-paste mistake #86

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading