appsignal-elixir icon indicating copy to clipboard operation
appsignal-elixir copied to clipboard

GenServer instrumentation (helper)

Open tombruijn opened this issue 7 years ago • 1 comments

Provide an easy one-two line solution to instrumenting GenServers.

For example by (only) including a module:

defmodule Foo do
  use GenServer
  use Appsignal.Instrumentation.GenServer

  # GenServer implementation
end

As reported here (private link)

tombruijn avatar Sep 04 '17 10:09 tombruijn

Yes, would be definitely nice to have

achempion avatar Apr 13 '21 13:04 achempion

Proof of concept thread (Slack): https://appsignal.slack.com/archives/CNPP953E2/p1677065498603149

unflxw avatar Jun 12 '23 08:06 unflxw

Let's get back to it if someone asks for it again. Closing for now.

tombruijn avatar Feb 26 '24 10:02 tombruijn

Well, pretty timely closure 😅 I am evaluating AppSignal, I make a lot of use of background GenServers in my app, and landed on this issue while googling for the best way to instrument a process.

A helper module I can just use would certainly help for the smaller background processes, while the bigger ones will require hand-written instrumentation.

1player avatar Feb 29 '24 17:02 1player

@1player Pretty timely comment on your end as well! We closed this because we were unsure if there was enough interest in it -- we can reconsider this decision.

Part of the reason we closed this is that we are unsure of what a good GenServer instrumentaton would look like. Would you be interested in trying out a proof of concept for it and giving us feedback? If so, please reach out to us at [email protected], and mention this issue on your message.

unflxw avatar Mar 01 '24 06:03 unflxw