scoutapp / scout_apm_elixir

ScoutAPM Elixir Agent. Supports Phoenix and other frameworks.
https://scoutapm.com
Other
36 stars 20 forks source link

Channel Instrumentation #23

Closed itsderek23 closed 7 years ago

itsderek23 commented 7 years ago

We should provide a way to instrument channels. Channel activity can trigger performance issues.

With custom instrumentation, it's possible to wedge these in as "Controller" or "Job" types into the Scout UI. It'd be nicer to have a dedicated "Channels" area in the UI.

The most straightforward path would be functions / decorators to instrument the handle_*/ functions.

Potentially useful:

The Firestorm open-source app makes extensive use of channels to update the UI.

itsderek23 commented 7 years ago

0.3.0 added the ability to instrument custom transactions. This works for channels.

See http://help.apm.scoutapp.com/#instrumenting-common-libraries