You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding @trace to a function with an ignored list tail the macro creates an improper list with :__ignored__ as the tail instead of creating an ignored tail variable.
Below is an example module that produces the issue
This one is interesting, we need to "re write" the arguments of the function so we can log the function call itself. The :__ignored__ atom is stuck in there to avoid compiler warnings
Describe the bug
When adding
@trace
to a function with an ignored list tail the macro creates an improper list with:__ignored__
as the tail instead of creating an ignored tail variable.Below is an example module that produces the issue
This code will raise warnings in dialyzer which say that the list is improper
And then below I logged out what the Tracer build_call_args/1 returns with and without the rewrite_call_term postwalk
Environment
elixir -v
): Elixir 1.12.1 (compiled with Erlang/OTP 22)mix deps | grep new_relic_agent
): 1.27.4The text was updated successfully, but these errors were encountered: