Skip to content

Commit

Permalink
Merge pull request #497 from newrelic/vince/fix-bandit-missing-conn-a…
Browse files Browse the repository at this point in the history
…gain

Fix bug with missing bandit conn
  • Loading branch information
tpitale authored Feb 13, 2025
2 parents b1c8d48 + 5e4766b commit bcf89e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/new_relic/telemetry/plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ defmodule NewRelic.Telemetry.Plug do
defp add_start_attrs(_meta, meas, _headers, :bandit) do
[
pid: inspect(self()),
start_time: meas[:system_time]
start_time: meas[:system_time],
host: "unknown",
path: "unknown"
]
|> NewRelic.add_attributes()
end
Expand Down Expand Up @@ -199,6 +201,7 @@ defmodule NewRelic.Telemetry.Plug do

[
duration: meas[:duration] || 0,
error: meta[:error],
status: status_code(meta) || 500,
memory_kb: info[:memory] / @kb,
reductions: info[:reductions],
Expand Down

0 comments on commit bcf89e4

Please sign in to comment.