elixir_plug_server_timing icon indicating copy to clipboard operation
elixir_plug_server_timing copied to clipboard

Avoid crashing on non instrumented responses

Open tsubery opened this issue 7 years ago • 0 comments

When i used

def index(conn, _params)
  json(conn, %{})
end

In a controller action, total_call_time was missing from payload, causing a crash. It's better to skip instrumentation in this case than to fail the response.

tsubery avatar Dec 15 '18 21:12 tsubery