Skip to content

Commit

Permalink
Merge pull request #481 from newrelic/vince/fix-phoenix-attr
Browse files Browse the repository at this point in the history
Fix: phoenix nil attribute
  • Loading branch information
tpitale authored Jan 14, 2025
2 parents 8086145 + cb2ac4d commit 10adb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/telemetry/phoenix.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ defmodule NewRelic.Telemetry.Phoenix do
end,
"phoenix.format": conn.private[:phoenix_format],
"phoenix.template": conn.private[:phoenix_template],
"phoenix.view": conn.private[:phoenix_view] |> inspect()
"phoenix.view": conn.private[:phoenix_view] && inspect(conn.private[:phoenix_view])
]
|> NewRelic.add_attributes()
end
Expand Down

0 comments on commit 10adb50

Please sign in to comment.