AppSignal v1.0.0 Appsignal
Main library entrypoint.
This module contains the main AppSignal OTP application, as well as a few helper functions for sending metrics to AppSignal.
These metrics do not rely on an active transaction being present. For transaction related-functions, see the Appsignal.Transaction module.
Summary
Functions
Add a value to a distribution
Increment a counter of some metric
Send an error to AppSignal
Set a gauge for a measurement of some metric
Application callback function
Application callback function
Functions
Add a value to a distribution
Use this to collect multiple data points that will be merged into a graph.
Increment a counter of some metric.
Send an error to AppSignal
When there is no current transaction, this call starts one.
Examples
Appsignal.send_error(%RuntimeError{})
Appsignal.send_error(%RuntimeError{}, "Oops!")
Appsignal.send_error(%RuntimeError{}, "", System.stacktrace())
Appsignal.send_error(%RuntimeError{}, "", nil, %{foo: "bar"})
Appsignal.send_error(%RuntimeError{}, "", nil, %{}, %Plug.Conn{peer: {{127, 0, 0, 1}, 12345}})
Appsignal.send_error(%RuntimeError{}, "", nil, %{}, nil, fn(transaction) ->
Appsignal.Transaction.set_sample_data(transaction, "key", %{foo: "bar"})
end)
Set a gauge for a measurement of some metric.