fteschke

fteschke

Add telemetry event for LiveView `on_mount` callback

No on_mount telemetry event is emitted for LiveView.on_mount/1 callbacks.

These are the events currently emitted for LiveViews: mount, handle_params, handle_event, render.

Do you think an on_mount event should be added?

Short background: I’m attaching event listeners to enrich AppSignal spans with custom data (user ID, current path). Maybe there’s a better way altogether. If not, being able to instrument on_mount would help provide more context for on_mount errors.

Most Liked Switch mode

steffend

steffend

Phoenix Core Team

I can see this being useful, so I think a PR implementing it would be welcome!

Where Next?

Trending in Proposals: Ideas Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement