appsignal / appsignal-elixir

🟪 AppSignal for Elixir package
https://www.appsignal.com/elixir
MIT License
282 stars 82 forks source link

LiveComponents shown in "background" namespace #940

Closed lunks closed 5 months ago

lunks commented 5 months ago

If your bug is about how AppSignal works in your app specifically we recommend you contact us at support@appsignal.com with your bug report instead.


Describe the bug

I have an error in AppSignal related to a LiveComponent that I expected to be in either "web" or "live_view", but it is in "background"

To Reproduce

Steps to reproduce the behavior:

Create a LiveComponent and have it error out. The error is being reported as background when it should be live_view

We define our live component in lib/app_web.ex:

  def live_component do
    quote do
      use Phoenix.LiveComponent

      unquote(view_helpers())
    end
  end
tombruijn commented 5 months ago

Hi @lunks, it sounds like it's reported by our error handler backend which is a last resort to report errors, which is why it's using the "background" namespace.

Can you check if you've added the AppSignal Phoenix LiveView telemetry?

tombruijn commented 5 months ago

We also have a branch in the works that should add support for livecomponent you can try out here: https://github.com/appsignal/appsignal-elixir-phoenix/pull/84

tombruijn commented 5 months ago

Closing. Let us know if attaching the AppSignal Phoenix LiveView telemetry did not help.