new_relic v0.1.0 NewRelic.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 NewRelic.Plug.Instrumentation and NewRelic.Plug.Repo.

defmodule MyApp.UsersController do
  use Phoenix.Controller
  plug NewRelic.Plug.Phoenix

  def index(conn, _params) do
    # `conn` is setup for instrumentation
  end
end

Summary

Functions

Callback implementation for Plug.call/2

Callback implementation for Plug.init/1

Functions

call(conn, config)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.