New Relixir v0.2.0 NewRelixir.Plug.Phoenix
A plug that instruments Phoenix controllers and records their response times in New Relic.
Inside an instrumented controller’s actions, conn can be used for further instrumentation with
NewRelixir.Plug.Instrumentation and NewRelixir.Plug.Repo.
defmodule MyApp.UsersController do
use Phoenix.Controller
plug NewRelixir.Plug.Phoenix
def index(conn, _params) do
# `conn` is setup for instrumentation
end
end