AppSignal v0.9.0 Appsignal.Instrumentation.Decorators

Instrumentation decorators

This module contains various function decorators for instrumenting function calls.

@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_event()
transaction_event()