AppSignal v0.0.6 Appsignal.Helpers
Helper functions to instrument your application
Summary
Functions
Execute the given function in start / finish event calls. See instrument/6
Execute the given function in start / finish event calls. See instrument/6
Execute the given function in start / finish event calls
Types
instrument_arg ::
Appsignal.Transaction.t |
Plug.Conn.t
Functions
Specs
instrument(instrument_arg, String.t, String.t, function) :: any
Execute the given function in start / finish event calls. See instrument/6
.
Specs
instrument(instrument_arg, String.t, String.t, String.t, function) :: any
Execute the given function in start / finish event calls. See instrument/6
.
Specs
instrument(instrument_arg, String.t, String.t, String.t, integer, function) :: any
Execute the given function in start / finish event calls.
The result of the function’s execution is returned. For example, to instrument a backend HTTP call in a Phoenix controller, do the following:
import Appsignal.Helpers, only: [instrument: 4]
def index(conn, _params) do
result = instrument(conn, "net.http", "Some slow backend call", fn() ->
Backend.get_result()
end
json conn, result
end