Perf Agent v0.1.4 PerfAgent.Plug.Phoenix

A plug that instruments Phoenix controllers and records their status and response times in Perf.

defmodule MyApp.UsersController do
  use Phoenix.Controller
  plug PerfAgent.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.