We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cf7cb0 commit 7888a0cCopy full SHA for 7888a0c
lib/new_relic/telemetry/plug.ex
@@ -174,6 +174,7 @@ defmodule NewRelic.Telemetry.Plug do
174
175
defp add_start_attrs(meta, system_time, :bandit) do
176
headers = Map.new(meta.conn.req_headers)
177
+
178
[
179
pid: inspect(self()),
180
system_time: system_time,
@@ -214,7 +215,8 @@ defmodule NewRelic.Telemetry.Plug do
214
215
status: status_code(meta),
216
memory_kb: info[:memory] / @kb,
217
reductions: info[:reductions],
- "bandit.resp_duration_ms": (meas[:resp_start_time] |> to_ms) - (meas[:resp_end_time] |> to_ms),
218
+ "bandit.resp_duration_ms":
219
+ (meas[:resp_start_time] |> to_ms) - (meas[:resp_end_time] |> to_ms),
220
"bandit.resp_body_bytes": meas[:resp_body_bytes]
221
]
222
|> NewRelic.add_attributes()
0 commit comments