From 781b553652f7fa6eaf13e7121277efcc9d0a8400 Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Thu, 25 Jan 2024 09:45:18 +0100 Subject: [PATCH] Fix bad copy-paste mistake Fix #85 --- pkg/autometrics/instrument.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/autometrics/instrument.go b/pkg/autometrics/instrument.go index dac0cec..aef74f2 100644 --- a/pkg/autometrics/instrument.go +++ b/pkg/autometrics/instrument.go @@ -66,7 +66,7 @@ func callerInfo(ctx context.Context) (callInfo CallInfo) { ")", ""), "*", "") - callInfo.Parent.Function = functionName[index+1:] + callInfo.Parent.Function = parentFrameFunctionName[index+1:] } return