AppSignal v1.8.1-beta.1 Appsignal.Instrumentation.Decorators View Source

Instrumentation decorators

This module contains various function decorators for instrumenting function calls.

@decorate transaction - when a function decorated like this is called, a transaction is started in the :http_request namespace.

@decorate transaction(:background_job) - when a function decorated like this is called, a transaction is started in the :background_job namespace.

@decorate transaction_event - when a function decorated like this is called, it will add an event onto the transaction’s timeline. The name of the event will be the name of the function that’s decorated.

@decorate transaction_event(:category) - when a function decorated like this is called, it will add an event onto the transaction’s timeline. The name of the event will be the name of the function that’s decorated. In addition, the event will be grouped into the given :category.

@decorate channel_action - this decorator is meant to be put before the handle_in/3 function of a Phoenix.Channel. See Appsignal.Phoenix.Channel for more information on how to instrument channel events.

Link to this section Summary

Link to this section Functions

Link to this macro channel_action() View Source (macro)
Link to this macro transaction(var1) View Source (macro)
Link to this macro transaction_event() View Source (macro)
Link to this macro transaction_event(var1) View Source (macro)