Closed Bionic2113 closed 2 months ago
I wanted to try out your library. I got an error when I called the TraceFunction function. Inside, it requested a name that contained the path spelled out in the module in go.mod. Therefore, I decided to replace all "/" with "-"
@Bionic2113 That seems valid to me, great catch! It would be helpful if you could provide an example — maybe a function name with the full path, both before and after the change.
@Bionic2113 Once you share an example, I'll merge the PR with #15 and include it in the minor release.
Before:
2024/09/21 13:05:25 could not write memory profile for function: github.com/test/monigo/server.(Server).HomeHandler-fm.(Server).HomeHandler.func1 : Error: open /Users/a1/go/src/test/monigo/monigo/profiles/github.com/test/monigo/server.(Server).HomeHandler-fm.(Server).HomeHandler.func1_mem.prof: no such file or directory will be retrying in the next iteration
After:
Name after: github.com-test-monigo-server.(Server).HomeHandler-fm.(Server).HomeHandler.func1
I wanted to try out your library. I got an error when I called the TraceFunction function. Inside, it requested a name that contained the path spelled out in the module in go.mod. Therefore, I decided to replace all "/" with "-"