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