Using AppSignal in an Umbrella application - can't run the app

Based my integration on their docs and their codebase here:

I’m getting this error:

== Compilation error in file lib/myapp/web/endpoint.ex ==
** (CompileError) lib/myapp/web/endpoint.ex:45: module Appsignal.Phoenix is not loaded and could not be found
    (elixir) expanding macro: Kernel.use/1
    lib/myapp/web/endpoint.ex:45: MyApp.Web.Endpoint (module)
    (elixir) lib/kernel/parallel_compiler.ex:121: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Has anyone had success integrating AppSignal in an Umbrella application?

I have gotten AppSignal working in an umbrella app so I know that it is possible (although I don’t have the code handy). I don’t remember running into any particular problems. They’ve been very responsive over support so if no-one is able to answer you here you could try their support channel.

FWIW future googler’s the issue was I had to compile using the test env.

In my setup lines:

MIX_ENV=test mix compile

1 Like