New Relixir v0.1.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

Summary

Functions

Callback implementation for c:Plug.call/2

Callback implementation for c:Plug.init/1

Functions

call(conn, config)

Callback implementation for c:Plug.call/2.

init(opts)

Callback implementation for c:Plug.init/1.