AppSignal v1.0.0 Appsignal.Instrumentation.Decorators

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.

Summary

Macros

channel_action()
transaction()
transaction()
transaction_event()
transaction_event()