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

System Stack Level too deep #4

Open
writercoder opened this issue Nov 23, 2023 · 2 comments
Open

System Stack Level too deep #4

writercoder opened this issue Nov 23, 2023 · 2 comments
Assignees

Comments

@writercoder
Copy link

Good afternoon,

I tried kicking the tyres on call stacking but got a "System Stack Level too deep" when I tried to record a trace.

callstacking-stack

I'll try again without NewRelic and AppSignal gems to see if they are causing the issue.

BTW using rails 7.0.8 on ruby 3.1.4

@writercoder
Copy link
Author

I'll try again without NewRelic and AppSignal gems to see if they are causing the issue.

Still seeing the issue without these gems installed.

@aantix
Copy link
Contributor

aantix commented Dec 3, 2023

My guess is that there is an application level Rails.root override in lib/rails.rb:64

Since Call Stacking instruments application level calls and utilizes ::Rails.root within its instrumentation method, it becomes a circular reference.
https://github.com/callstacking/callstacking-rails/blob/65313fe53c933a5d208df4ae0c01a8ef304aca70/lib/callstacking/rails/instrument.rb#L70C34-L70C34

This will take some refactoring on my end to resolve.

@aantix aantix self-assigned this Dec 4, 2023
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

No branches or pull requests

2 participants