Giter Site home page Giter Site logo

AG\ElasticApmLaravel\Collectors\EventDataCollector::shouldIgnoreTransaction(): Argument #1 ($transaction_name) must be of type string, about elastic-apm-laravel HOT 6 CLOSED

tomvo avatar tomvo commented on July 4, 2024
AG\ElasticApmLaravel\Collectors\EventDataCollector::shouldIgnoreTransaction(): Argument #1 ($transaction_name) must be of type string,

from elastic-apm-laravel.

Comments (6)

arkaitzgarro avatar arkaitzgarro commented on July 4, 2024

Do you have an example of how do you schedule tasks? I have the impression we expect a command, but Laravel allows more than that.

from elastic-apm-laravel.

tomvo avatar tomvo commented on July 4, 2024

We have quite a bit of scheduled tasks.

The normal ones in console/Kernel.php like:

$schedule->command('...')->everyFiveMinutes();

and

 $schedule->job(new MyJob)->dailyAt('07:00');

but also in different Service Providers like this:

public function boot(): void
    {
            //Register the clean cached command to be scheduled hourly
            $this->app->booted(function () {
                $schedule = $this->app->make(Schedule::class);

                $schedule->command('...')->daily();
            });
    }

I tried to debug the exception but i cannot seem to trigger it manually.

from elastic-apm-laravel.

tomvo avatar tomvo commented on July 4, 2024

hey @arkaitzgarro any chance we can look into this, if you need any more input from my side let me know. I'm getting this basically on every single piece of code i execute in our test environment.

from elastic-apm-laravel.

arkaitzgarro avatar arkaitzgarro commented on July 4, 2024

Hi @tomvo, I can reproduce locally, looks like the problem is both with scheduling closures or invokable objects, where we cannot infer the name of the task. I'll work on a fix an keep you posted.

from elastic-apm-laravel.

tomvo avatar tomvo commented on July 4, 2024

Awesome, let me know if you want me to do some further testing!

from elastic-apm-laravel.

arkaitzgarro avatar arkaitzgarro commented on July 4, 2024

@tomvo a new version v4.0.1 has been released, and it should include a fix for this problem. Let me know if it is fixed for you.

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.