Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start nested app in Umbrella project #445

Closed
jvanbaarsen opened this issue Jan 15, 2019 · 7 comments
Closed

Can't start nested app in Umbrella project #445

jvanbaarsen opened this issue Jan 15, 2019 · 7 comments
Labels

Comments

@jvanbaarsen
Copy link
Member

When you add AppSignal to an Umbrella app, you can not start the nested apps indepdendently from each other. If you try to do so it will show an error that the AppSignal app cannot be found.

@bryanenders
Copy link

bryanenders commented Feb 6, 2019

+1

Independent execution is one of the main features of an umbrella project. Following the AppSignal docs breaks that feature.

Ordinarily you would have the OTP app start before the dependent app by putting the dep into each app’s mix.exs (which would obviate its inclusion in :extra_applications). Upgrading that dep in the future would require an update to multiple mix.exs files, but the compiler would ensure they matched. Yet the docs explicitly state:

Install and configure AppSignal in the umbrella, and not separately in each nested app

Why is this, AppSignal?

@jeffkreeftmeijer
Copy link
Member

Hey @endersstocker,

Thanks for chiming in! We added this in some of the first versions of our integration, where this fixed issues that some of our customers were seeing. We'd love to be able to update the documentation and have users install appsignal in both nested apps, so I've been testing in an umbrella app and found that the integration is still working.

I've moved the dependency to both nested apps, and removed :appsignal from extra_applications. Does this work for your application too? Assuming you're running a Phoenix umbrella, I'm particularly interested to know if you're getting Ecto queries, as well as Phoenix events in.

@bryanenders
Copy link

Hi @jeffkreeftmeijer,

We were able to the move the dependency down to the nested apps without any apparent negative consequences. Ecto queries and Phoenix events are both successfully making their way into AppSignal. Huzzah!

@jvanbaarsen
Copy link
Member Author

@jeffkreeftmeijer Can I contact Private Internal link about this change as well? Since I believe it will solve that issue also.

@jeffkreeftmeijer
Copy link
Member

@endersstocker that's great to hear! Thanks for getting back to us about this. We'll do some more testing and we'll update the documentation if we don't find any further issues.

@jvanbaarsen yes, great idea. Could you ask them to make sure this setup works for them too?

@jvanbaarsen
Copy link
Member Author

@jeffkreeftmeijer Got confirmation that this works for them. Did we already update the docs? If so, shall we close this issue?

@jeffkreeftmeijer
Copy link
Member

Thanks! We're updating the docs in https://github.com/appsignal/appsignal-docs/pull/213 and https://github.com/appsignal/appsignal-server/pull/4115. Thanks @endersstocker for your input, we're closing this and will update the documentation in the issues above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants