AppSignal v1.6.5 Appsignal View Source

AppSignal for Elixir. Follow the installation guide to install AppSignal into your Elixir app.

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.

Link to this section Summary

Link to this section Functions

Link to this function add_distribution_value(key, value, tags \\ %{}) View Source
add_distribution_value(String.t(), float() | integer(), map()) :: :ok

Add a value to a distribution

Use this to collect multiple data points that will be merged into a graph.

Link to this function config_change(changed, new, removed) View Source
Link to this function increment_counter(key, count \\ 1, tags \\ %{}) View Source
increment_counter(String.t(), integer(), map()) :: :ok

Increment a counter of some metric.

Link to this function send_error(reason, message \\ "", stack \\ nil, metadata \\ %{}, conn \\ nil, fun \\ fn t -> t end, namespace \\ :http_request) View Source

Send an error to AppSignal

When there is no current transaction, this call starts one.


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"})
Link to this function set_gauge(key, value, tags \\ %{}) View Source
set_gauge(String.t(), float() | integer(), map()) :: :ok

Set a gauge for a measurement of some metric.

Application callback function

Application callback function