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

Remove NEWRELIC_DISPATCHER env variable #822

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

kwugirl
Copy link
Contributor

@kwugirl kwugirl commented Nov 10, 2015

It looks like this environment variable was originally added in 2012 to get the newrelic_rpm gem to automatically start. Since then, built-in methods for discovering the dispatcher in an environment were added (see here generally, and this commit for adding dispatcher detection for Puma specifically). As a result, I think this environment variable no longer needs to be set in Puma.

There was a change by @tomohiro merged to Puma a few months ago that changed this variable from puma to Puma because something had stopped working with Rails 4.2 + New Relic + Heroku. I think that may have in response to this change that stopped reporting from the Puma master process--I set up a quick test of Rails 4.2 + New Relic + Heroku with the variable as puma instead of Puma and that appeared to successfully report data to New Relic, but I'm happy to investigate further if there was another issue going on with the harvest thread auto-starting logic. Overall though, it seems like this should be issue that we fix in newrelic_rpm and not in Puma :)

@seuros
Copy link

seuros commented Nov 10, 2015

💚

@tomohiro
Copy link
Contributor

👍

evanphx added a commit that referenced this pull request Jan 28, 2016
Remove NEWRELIC_DISPATCHER env variable
@evanphx evanphx merged commit b2f8a2a into puma:master Jan 28, 2016
@evanphx
Copy link
Member

evanphx commented Jan 28, 2016

Sorry this took so long to merge!

@kwugirl
Copy link
Contributor Author

kwugirl commented Jan 28, 2016

Oo thanks for taking care of it @evanphx!

@kwugirl kwugirl deleted the remove_NEWRELIC_DISPATCHER branch January 28, 2016 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants