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

Add stack frame lookup based on runtime.CallersFrames for supported g… #101

Closed
wants to merge 1 commit into from

Conversation

lggomez
Copy link

@lggomez lggomez commented Sep 5, 2019

Part of the work required for #100

Does not remove the dependency on runtime.Callers but it simplifies the implementation and removes the need for FuncForPC on Go 1.7+

@newrelic-eheinlein
Copy link
Contributor

@lggomez Thank you for this work! It is coincidental timing, as your PR came in just as we finished up reviewing a PR internally that is very similar. That PR is about to be merged internally.

One of my colleagues caught a bug in my code, which I think is also present in your code, where the last frame of the stack trace is missed because when cf.Next() returns the final frame of the stack trace, more will be false, but the frame returned with it will still be valid.

We will be merging our internal PR shortly, and the fix will be included in the next agent release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants