Giter Site home page Giter Site logo

Comments (8)

countless-integers avatar countless-integers commented on July 2, 2024

Are those workers picking up code changes you're deploying?

Does the job category even appear in the UI for you?

Screenshot 2022-08-11 at 10 01 47

from elastic-apm-laravel.

tomvo avatar tomvo commented on July 2, 2024

@countless-integers thanks for your reply Adrian. So the code is picked up by the workers because it is logging the artisan commands executed by the same environment. I confirmed this also by changing the app name of the jobs server. And I do see this app name show up in transactions. But as said only with the artisan commands.

I do not see the jobs value in the dropdown.

Any other clues as to what I could try?

from elastic-apm-laravel.

countless-integers avatar countless-integers commented on July 2, 2024

The reason I asked about that is because usually workers run as continuous processes, so they need to be reloaded to pick up any code changes -- ofc it all depends on what your setup is.

No clue unfortunately.

from elastic-apm-laravel.

dstepe avatar dstepe commented on July 2, 2024

Sorry I'm a little late to the party. I confirmed that we are seeing APM data for jobs executed on our jobs server, but our environment is certainly different (we don't use Horizon for example). For jobs, the data is sent to APM as a result of listening for the JobProcessed event. (See the collector for details.) Could something in your application either cause that event to not fire or otherwise disrupt the logic required for the send to be executed?

from elastic-apm-laravel.

tomvo avatar tomvo commented on July 2, 2024

Hi all, sorry for my late reply but I reached out to Elastic Support and they told me that since some time the APM php package supports Laravel out of the box. At the moment i'm not sure if I should use this package on top of the APM install or not? Any feedback would be appreciated!

from elastic-apm-laravel.

dstepe avatar dstepe commented on July 2, 2024

The APM Agent for PHP is an extension which you must install in our PHP runtime. This package and the underlying APM Agent predate the creation of the official extension and their interoperability is unknown. However, since the two implementations have no actual awareness of each other, I think only one should be used, otherwise you will send duplicate transaction data.

from elastic-apm-laravel.

arkaitzgarro avatar arkaitzgarro commented on July 2, 2024

Hey @tomvo, thanks for the info. As @dstepe mentioned, the official APM agent is installed directly in the server as a PHP runtime extension, and not as a Laravel dependency. I didn't try it yet, but if you have the chance and can/want to share your impression here, you are more than welcome.

from elastic-apm-laravel.

tomvo avatar tomvo commented on July 2, 2024

hey @arkaitzgarro sorry for bumping on this closed issue. I just got another reply from Elastic on my question on how to differentiate between environments. They mentioned:

I was checking internally, and it seems it is only possible to do such environment separation having different php.ini files.

So for anyone else stumbling upon this, please know this. This means i'll probably switch to using this package instead of the PHP Agent.

from elastic-apm-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.