diff --git a/pkg/internal/goexec/offsets.go b/pkg/internal/goexec/offsets.go index cc0834c11..6fb28af7b 100644 --- a/pkg/internal/goexec/offsets.go +++ b/pkg/internal/goexec/offsets.go @@ -38,9 +38,9 @@ func InspectOffsets(cfg *otel.TracesConfig, execElf *exec.FileInfo, funcs []stri // symTab would be used to find the function name from the address when // captuing Go errors. If the option is disabled, whe don't need to keep // the symbol table in memory. - if !cfg.ReportExceptionEvents { - symTab = nil - } + // if !cfg.ReportExceptionEvents { + // symTab = nil + // } if len(found) == 0 { return nil, fmt.Errorf("couldn't find any instrumentation point in %s", execElf.CmdExePath) }