newrelic/elixir_agent

Log context break

Closed this issue · 1 comments

Describe the bug
The agent break after some request, when using together with Tesla with Tesla.Middleware.Logger enabled.

Screenshot 2023-02-09 at 19 53 26

After the message {removed_failing_filter,nr_logs_in_context} all other logs lost level and much other information of metadata.

Environment

  • Elixir & Erlang version (elixir -v): Elixir 1.14.3 (compiled with Erlang/OTP 25)
  • Agent version (mix deps | grep new_relic_agent): new_relic_agent 1.27.5 (Hex package) (mix)

Closing this issue.
The log was broken when trying to transform binary data into json, which is because by default is debug in Tesla middleware, and when disabled debug this does not occur more.