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

Command line app is not tracked #211

Open
Kolesar opened this issue Dec 4, 2018 · 3 comments
Open

Command line app is not tracked #211

Kolesar opened this issue Dec 4, 2018 · 3 comments

Comments

@Kolesar
Copy link

Kolesar commented Dec 4, 2018

My configuration is like:

ekino_new_relic:
    enabled: true
    application_name:  "Service Name"
    deployment_names: ~
    api_key: "%env(NEWRELIC_API_KEY)%"
    logging: true
    interactor: ~ 
    twig: false
    exceptions: true
    deprecations: true
    http:
        enabled: false
    monolog:
        enabled: true
        channels: [app]
        level: error
    commands:
        enabled: true
        ignored_commands: []

In the New Relic dashboard I see this "Service Name" name in the Application list, but, all transaction are tracked under default name from the newrelic.ini file.

My application is the console one and unfortunately, I see there only main command: bin/console nothing deeper which command exactly is run, because bin/console has arguments, of course, and it is multiprocessing application.

I'm new with New Relic and do not know how it works in details. Any help or hint here is welcome.

@jderusse
Copy link
Collaborator

Hi Kolesar,

Thank for the report, I personnaly use the .ini file to configure my application_name, BUT, I didn't see why this parameter wouldn't work (neither does the transaction naming).

Could you, please, help us by "debugging your application by adding "logs" or "dumps" in the NewRelicInteractor file?

    public function setApplicationName(string $name, string $license = null, bool $xmit = false): bool
    {
        dump($name);
        return newrelic_set_appname($name, $license, $xmit);
    }

    public function setTransactionName(string $name): bool
    {
        dump($name);
        return newrelic_name_transaction($name);
    }

And check if those 2 methods are called with the right parameters.

I also notice that you open issue in Monolog's repository, did you configured the Monolog Handler with an other application name ? Or are you sending logs with a context containing the keys transaction_name or appname?

@ne0h12
Copy link

ne0h12 commented Apr 15, 2019

@Kolesar you will attempt to set config "using_symfony_cache: true" in node http. It is work for me.

@jderusse
Copy link
Collaborator

did it worked? @Kolesar

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

No branches or pull requests

3 participants