public function setAppname($name, string $license = null, bool $xmit = false): bool
    {
        if (!$this->isLoaded()) {
            return false;
        }

        $name = is_array($name) ? implode(';', $name) : $name;

        if (isset($license)) {
            return newrelic_set_appname($name, $license, $xmit);
        }

        return newrelic_set_appname($name);
    }
public function setAppname($name, string $license = null, bool $xmit = false): bool
    {
        if (!$this->isLoaded()) {
            return false;
        }

        $name = is_array($name) ? implode(';', $name) : $name;

        if (isset($license)) {
            return newrelic_set_appname($name, $license, $xmit);
        }

        return newrelic_set_appname($name);
    }
public function setAppname ( $ name , string $ license = null , bool $ xmit = false ) : bool { if ( ! $ this -> isLoaded ( ) ) { return false ; } $ name = is_array ( $ name ) ? implode ( ';' , $ name ) : $ name ; if ( isset ( $ license ) ) { return newrelic_set_appname ( $ name , $ license , $ xmit ) ; } return newrelic_set_appname ( $ name ) ; }
Sets the New Relic app name, which controls data rollup.

Agent version 3.1.5.111 or higher.

@see https://docs.newrelic.com/docs/agents/php-agent/php-agent-api/newrelic_set_appname

@param string|array $name    Name(s) of app metrics should be reported under in New Relic user interface
@param string       $license (optional) Specify a different license key to report metrics to a different
New Relic account
@param bool         $xmit    (optional) Defaults to false

@return bool
Sets the New Relic app name which controls data rollup .