Hello Phoenix World!
I have a very strange problem. On my dev environment, I am able to capture the [:phoenix, :live_view, :handle_params, :stop]
event and process them.
However when it goes into prod environment, none of the live_view events seems to be emitted.
What am I missing?
Best regardS
Terry
def setup do
:telemetry.attach_many(
"telemetry-page",
# Add patterns for libraries you want to debug
[
[:phoenix, :endpoint, :stop],
[:phoenix, :live_view, :handle_params, :stop]
],
&__MODULE__.handle_event/4,
nil
)
end
def handle_event(event, measurements, metadata, _config) do
case event do
[:phoenix, :live_view, :handle_params, :stop] ->
%{socket: socket, params: query_params} = metadata