Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

NEW_RELIC_APP_NAME constant should be optional and taken from the ini file instead #22

Open
lucasiturbide opened this issue Jan 5, 2022 · 1 comment

Comments

@lucasiturbide
Copy link

In NewRelic for PHP configuration file you can define the app name and should not be overridden by the Plugin.
If it's not defined then you could try to fetch it from the INI value newrelic.appname like this:

            $newrelic_app_name = ini_get("newrelic.appname");
            if (!empty($newrelic_app_name)) {
                defined('NEW_RELIC_APP_NAME') or define('NEW_RELIC_APP_NAME', $newrelic_app_name);
            }
@Spriz
Copy link
Collaborator

Spriz commented Jan 31, 2022

@lucasiturbide We're actually changing the name depending on multiple factors as env (qa/staging/prod) and cli/web

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

No branches or pull requests

2 participants