AppSignal v2.1.1 Appsignal.Instrumentation View Source

Link to this section Summary

Link to this section Functions

Instrument a function.

def call do
  Appsignal.instrument("foo.bar", fn ->
    :timer.sleep(1000)
  end)
end

When passing a function that takes an argument, the function is called with the created span to allow adding extra information.

def call(params) do
  Appsignal.instrument("foo.bar", fn span ->
    Appsignal.Span.set_sample_data(span, "params", params)
    :timer.sleep(1000)
  end)
end
Link to this function

instrument(name, category, fun)

View Source
Link to this function

instrument(_, name, category, fun)

View Source
This function is deprecated. Use Appsignal.instrument/3 instead..
Link to this function

send_error(exception, stacktrace)

View Source
Link to this function

send_error(exception, stacktrace, fun)

View Source
Link to this function

send_error(kind, reason, stacktrace, fun)

View Source
Link to this function

set_error(exception, stacktrace)

View Source
Link to this function

set_error(kind, reason, stacktrace)

View Source