View Source Appsignal (AppSignal v2.13.2)

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.

Summary

Functions

Link to this function

add_distribution_value(key, value, tags \\ %{})

View Source
@spec 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.

This function is deprecated. Use `Appsignal.CheckIn.cron/1` instead..
@spec heartbeat(String.t()) :: :ok

See Appsignal.CheckIn.cron/1.

This function is deprecated. Use `Appsignal.CheckIn.cron/2` instead..
@spec heartbeat(String.t(), (-> out)) :: out when out: var

See Appsignal.CheckIn.cron/2.

Link to this function

increment_counter(key, count \\ 1, tags \\ %{})

View Source
@spec increment_counter(String.t(), number(), map()) :: :ok

Increment a counter of a metric.

See Appsignal.Instrumentation.instrument/1.

See Appsignal.Instrumentation.instrument/2.

Link to this function

instrument(name, category, fun)

View Source

See Appsignal.Instrumentation.instrument/3.

Link to this function

send_error(exception, stacktrace)

View Source

See Appsignal.Instrumentation.send_error/2.

Link to this function

send_error(kind, reason, stacktrace)

View Source

See Appsignal.Instrumentation.send_error/3.

Link to this function

send_error(kind, reason, stacktrace, fun)

View Source

See Appsignal.Instrumentation.send_error/4.

Link to this function

set_error(exception, stacktrace)

View Source

See Appsignal.Instrumentation.set_error/2.

Link to this function

set_error(kind, reason, stacktrace)

View Source

See Appsignal.Instrumentation.set_error/3.

Link to this function

set_gauge(key, value, tags \\ %{})

View Source
@spec set_gauge(String.t(), float() | integer(), map()) :: :ok

Set a gauge for a measurement of a metric.